Replace emoji/Unicode characters with ASCII in migration commands

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 06:45:05 +00:00
parent d531c69c17
commit 9d44fcff55
8 changed files with 94 additions and 94 deletions

View File

@@ -20,14 +20,14 @@ class Migrate_Rollback_Command extends Command
{
// Check if in migration mode
if (!file_exists($this->flag_file)) {
$this->error('⚠️ No migration session in progress!');
$this->error('[WARNING] No migration session in progress!');
$this->info('Run "php artisan migrate:begin" to start a migration session.');
return 1;
}
// Check if backup exists
if (!is_dir($this->backup_dir)) {
$this->error(' Backup directory not found!');
$this->error('[ERROR] Backup directory not found!');
$this->info('The backup may have been corrupted or deleted.');
$this->warn('You may need to manually restore from a different backup.');
@@ -36,8 +36,8 @@ class Migrate_Rollback_Command extends Command
return 1;
}
$this->warn('⚠️ Restoring database to the snapshot taken at migrate:begin.');
$this->info('🔄 Starting database rollback...');
$this->warn('[WARNING] Restoring database to the snapshot taken at migrate:begin.');
$this->info(' Starting database rollback...');
try {
// Step 1: Stop MySQL using supervisorctl
@@ -75,10 +75,10 @@ class Migrate_Rollback_Command extends Command
// Success
$this->info('');
$this->info(' Database successfully rolled back to snapshot!');
$this->info('[OK] Database successfully rolled back to snapshot!');
$this->info('');
$this->line('The database has been restored to the snapshot state.');
$this->warn('⚠️ You are still in migration mode with the same snapshot.');
$this->warn('[WARNING] You are still in migration mode with the same snapshot.');
$this->info('');
$this->line('Your options:');
$this->line(' • Fix your migration files and run "php artisan migrate" to try again');
@@ -89,7 +89,7 @@ class Migrate_Rollback_Command extends Command
return 0;
} catch (\Exception $e) {
$this->error(' Rollback failed: ' . $e->getMessage());
$this->error('[ERROR] Rollback failed: ' . $e->getMessage());
$this->error('Manual intervention may be required!');
// Try to restart MySQL