Skip to content

A free open source IT asset/license management system

Fix rollback for created_by

Marcus Moore0209d270810e
diff --git a/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php b/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php
index a57406ce10..3bef5948b6 100644
--- a/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php
+++ b/database/migrations/2024_09_17_204302_change_user_id_to_created_by.php
@@ -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');
});