diff --git a/database/migrations/2023_12_18_104245_check_fix_status_at_users_table.php b/database/migrations/2023_12_18_104245_check_fix_status_at_users_table.php new file mode 100644 index 0000000000..da37de0ed6 --- /dev/null +++ b/database/migrations/2023_12_18_104245_check_fix_status_at_users_table.php @@ -0,0 +1,32 @@ +Type, 0, 4) === 'enum'; + if (!$isEnum) { + return; + } + // change the column status to varchar + DB::statement('ALTER TABLE users MODIFY COLUMN status VARCHAR(255) NOT NULL DEFAULT "ACTIVE"'); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + } +};