mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 06:24:44 +02:00
Whoops, add this in real quick before anybody notices!
This commit is contained in:
parent
039c669fc7
commit
06f66027dd
@ -13,6 +13,7 @@ return new class extends Migration
|
||||
{
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->dropForeign('nodes_location_id_foreign');
|
||||
$table->dropColumn('location_id');
|
||||
});
|
||||
|
||||
Schema::drop('locations');
|
||||
@ -34,6 +35,11 @@ return new class extends Migration
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->unsignedInteger('location_id')->default(0);
|
||||
$table->foreign('location_id')->references('id')->on('locations');
|
||||
});
|
||||
|
||||
Schema::table('api_keys', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('r_locations')->default(0);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user