mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-31 15:43:25 -08:00
Fix rollback for created_by
This commit is contained in:
parent
5084843f9d
commit
0209d27081
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue