Fix migration table naming and migrate:commit exit code

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-19 22:56:36 +00:00
parent 2fdf0ab9be
commit c8d87f47b7
116 changed files with 90 additions and 77 deletions

View File

@@ -110,10 +110,10 @@ class Migrate_Commit_Command extends Command
$this->info('Regenerating model constants...');
$this->call('rsx:constants:regenerate');
// Recompile bundles
// Recompile bundles (must use passthru for fresh process)
$this->newLine();
$this->info('Recompiling bundles...');
$this->call('rsx:bundle:compile');
passthru('php artisan rsx:bundle:compile');
}
return 0;
@@ -154,7 +154,8 @@ class Migrate_Commit_Command extends Command
}
// Get list of already run migrations from database
$ran_migrations = DB::table('migrations')->pluck('migration')->toArray();
$table = config('database.migrations', 'migrations');
$ran_migrations = DB::table($table)->pluck('migration')->toArray();
// Check each file
foreach ($files as $file) {