Fix enum column validation and migration data types
Remove numbered emoji and add no-emoji policy to CLAUDE.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,7 @@ class Migrate_Begin_Command extends Command
|
||||
|
||||
try {
|
||||
// Step 1: Stop MySQL using supervisorctl
|
||||
$this->info('1️⃣ Stopping MySQL server...');
|
||||
$this->info('[1] Stopping MySQL server...');
|
||||
shell_exec('supervisorctl stop mysql 2>&1');
|
||||
|
||||
// Wait a moment for process to die
|
||||
@@ -75,24 +75,24 @@ class Migrate_Begin_Command extends Command
|
||||
|
||||
// Step 2: Remove old backup if exists
|
||||
if (is_dir($this->backup_dir)) {
|
||||
$this->info('2️⃣ Removing old backup...');
|
||||
$this->info('[2] Removing old backup...');
|
||||
$this->run_command(['rm', '-rf', $this->backup_dir]);
|
||||
}
|
||||
|
||||
// Step 3: Copy MySQL data directory
|
||||
$this->info('3️⃣ Creating snapshot of MySQL data...');
|
||||
$this->info('[3] Creating snapshot of MySQL data...');
|
||||
$this->run_command(['cp', '-r', $this->mysql_data_dir, $this->backup_dir]);
|
||||
|
||||
// Step 4: Start MySQL again using supervisorctl
|
||||
$this->info('4️⃣ Starting MySQL server...');
|
||||
$this->info('[4] Starting MySQL server...');
|
||||
shell_exec('supervisorctl start mysql 2>&1');
|
||||
|
||||
// Step 5: Wait for MySQL to be ready
|
||||
$this->info('5️⃣ Waiting for MySQL to be ready...');
|
||||
$this->info('[5] Waiting for MySQL to be ready...');
|
||||
$this->wait_for_mysql_ready();
|
||||
|
||||
// Step 6: Create migration flag file
|
||||
$this->info('6️⃣ Creating migration flag...');
|
||||
$this->info('[6] Creating migration flag...');
|
||||
file_put_contents($this->flag_file, json_encode([
|
||||
'started_at' => now()->toIso8601String(),
|
||||
'started_by' => get_current_user(),
|
||||
|
||||
Reference in New Issue
Block a user