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:
@@ -37,18 +37,21 @@ class Seed_Command extends LaravelSeedCommand
|
||||
// Check for migration mode if we require it
|
||||
if ($require_migration_mode) {
|
||||
if (!file_exists($this->flag_file)) {
|
||||
$this->error('❌ Migration mode not active!');
|
||||
$this->error('[ERROR] Migration mode not active!');
|
||||
$this->error('');
|
||||
$this->line('In development mode, you must create a database snapshot before running seeders.');
|
||||
$this->line('In development mode, seeders must be run within a migration session.');
|
||||
$this->line('This prevents data corruption if seeding fails.');
|
||||
$this->info('');
|
||||
$this->line('To begin a migration session:');
|
||||
$this->line(' php artisan migrate:begin');
|
||||
$this->line('To seed the database, use the --seed flag with migrate:');
|
||||
$this->line(' php artisan migrate --seed');
|
||||
$this->info('');
|
||||
$this->line('Or use the --production flag to skip snapshot protection:');
|
||||
$this->line(' php artisan db:seed --production');
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
$this->info('✅ Migration mode active - snapshot available for rollback');
|
||||
$this->info('[OK] Migration mode active - snapshot available for rollback');
|
||||
$this->info('');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user