Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -260,7 +260,9 @@ class Maint_Migrate extends Command
|
||||
}
|
||||
|
||||
// Run normalize_schema BEFORE migrations to fix existing tables
|
||||
$requiredColumnsArgs = $is_development ? [] : ['--production' => true];
|
||||
// Use --production flag if not using snapshots (framework-only or non-development mode)
|
||||
$use_snapshot = $is_development && !$is_framework_only;
|
||||
$requiredColumnsArgs = $use_snapshot ? [] : ['--production' => true];
|
||||
|
||||
$this->info("\n Pre-migration normalization (fixing existing tables)...\n");
|
||||
$normalizeExitCode = $this->call('migrate:normalize_schema', $requiredColumnsArgs);
|
||||
|
||||
Reference in New Issue
Block a user