Remove migrate:begin/commit/rollback references, unify to migrate command
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -25,12 +25,11 @@ class Migrate_Status_Command extends Command
|
||||
$this->info('[OK] No migration session in progress');
|
||||
$this->info('');
|
||||
|
||||
$this->line('To run migrations:');
|
||||
$this->line(' php artisan migrate');
|
||||
if ($environment !== 'production') {
|
||||
$this->line('To start a migration session:');
|
||||
$this->line(' php artisan migrate:begin');
|
||||
} else {
|
||||
$this->line('In production, run migrations directly:');
|
||||
$this->line(' php artisan migrate');
|
||||
$this->line('');
|
||||
$this->line('In development mode, snapshots are created automatically.');
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -57,10 +56,9 @@ class Migrate_Status_Command extends Command
|
||||
}
|
||||
|
||||
$this->info('');
|
||||
$this->line('Available Commands:');
|
||||
$this->line(' • php artisan migrate - Run pending migrations');
|
||||
$this->line(' • php artisan migrate:commit - Keep changes and end session');
|
||||
$this->line(' • php artisan migrate:rollback - Restore backup and end session');
|
||||
$this->line('Migration Mode:');
|
||||
$this->line(' This indicates the migrate command is running with snapshot protection.');
|
||||
$this->line(' The snapshot will be auto-committed on success or auto-rolled back on failure.');
|
||||
|
||||
// Check database connection
|
||||
$this->info('');
|
||||
|
||||
Reference in New Issue
Block a user