mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 06:13:45 +02:00
Fix DB migrations to allow rollbacks
This commit is contained in:
@@ -22,7 +22,9 @@ class SetAllocationUnqiueUsingMultipleFields extends Migration
|
||||
public function down()
|
||||
{
|
||||
Schema::table('allocations', function (Blueprint $table) {
|
||||
$table->dropForeign(['node_id']);
|
||||
$table->dropUnique(['node_id', 'ip', 'port']);
|
||||
$table->foreign('node_id')->references('id')->on('nodes');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user