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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user