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:
root
2026-01-28 22:03:06 +00:00
parent 2ff2609971
commit 63816a7993
8 changed files with 59 additions and 58 deletions

View File

@@ -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('');
}