Fix rollback for created_by

This commit is contained in:
Marcus Moore 2024-11-18 12:24:47 -08:00
parent 5084843f9d
commit 0209d27081
No known key found for this signature in database

View file

@ -42,7 +42,7 @@ return new class extends Migration
}
foreach ($this->existing_table_list() as $table) {
if (Schema::hasColumn($table, 'user_id')) {
if (Schema::hasColumn($table, 'created_by')) {
Schema::table($table, function (Blueprint $table) {
$table->renameColumn('created_by', 'user_id');
});