AdministrationCommand Line
Migration Command
The gig migra command is used to handle database migrations in Gigantics.
Usage
gig migra [options]Description
The migration command manages database schema changes and versioning. It's used to apply or rollback migrations to keep the database structure synchronized with the application.
Common Options
Migration-specific options would be detailed here. Common patterns include:
--up- Apply migrations--down- Rollback migrations--status- Check migration status
Examples
# Run migration command
gig migra
# Apply all pending migrations
gig migra --up
# Check migration status
gig migra --statusBest Practices
- Always backup your database before running migrations
- Test migrations in a development environment first
- Check migration status before applying changes
- Ensure application is stopped during critical migrations