mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-24 23:11:08 +02:00
Unwrap transaction
This commit is contained in:
parent
eff8e509ef
commit
b24ff8bb26
@ -12,7 +12,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::transaction(function () {
|
||||
Schema::table('server_transfers', function (Blueprint $table) {
|
||||
$table->dropColumn(['old_allocation', 'new_allocation', 'old_additional_allocations', 'new_additional_allocations']);
|
||||
});
|
||||
@ -39,6 +38,12 @@ return new class extends Migration
|
||||
}
|
||||
|
||||
Schema::table('servers', function (Blueprint $table) {
|
||||
try {
|
||||
$table->dropForeign(['allocation_id']);
|
||||
} catch (Exception) {
|
||||
// pass
|
||||
}
|
||||
|
||||
$table->dropUnique(['allocation_id']);
|
||||
$table->dropColumn(['allocation_id']);
|
||||
});
|
||||
@ -48,7 +53,6 @@ return new class extends Migration
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->boolean('strict_ports')->default(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user