Update alter statement to use correct suffix for column

This is brittle...
This commit is contained in:
Marcus Moore 2023-01-10 17:08:28 -08:00
parent e5cb68cc5e
commit 39ab545cf5
No known key found for this signature in database

View file

@ -55,6 +55,6 @@ class MigrateMacAddress extends Migration
Schema::table('models', function (Blueprint $table) {
$table->renameColumn('deprecated_mac_address', 'show_mac_address');
});
DB::statement('ALTER TABLE assets CHANGE _snipeit_mac_address mac_address varchar(255)');
DB::statement('ALTER TABLE assets CHANGE _snipeit_mac_address_1 mac_address varchar(255)');
}
}