Whoops, add this in real quick before anybody notices!

This commit is contained in:
Lance Pioch 2024-03-24 14:43:25 -04:00
parent 039c669fc7
commit 06f66027dd

View File

@ -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);
});