Administration/Command 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 --status

Best Practices

  1. Always backup your database before running migrations
  2. Test migrations in a development environment first
  3. Check migration status before applying changes
  4. Ensure application is stopped during critical migrations

See Also

On this page