nodelist and nodelist_address should be using bigints

This commit is contained in:
Deon George 2022-11-19 15:45:59 +11:00
parent 5957a25044
commit 9de2469053

View File

@ -17,7 +17,7 @@ class Nodelists extends Migration
$table->id();
$table->timestamps();
$table->date('date');
$table->integer('domain_id');
$table->bigInteger('domain_id');
$table->foreign('domain_id')->references('id')->on('domains');
$table->unique(['date','domain_id']);
@ -28,9 +28,9 @@ class Nodelists extends Migration
Schema::create('address_nodelist', function (Blueprint $table) {
$table->integer('role')->nullable();
$table->integer('address_id');
$table->bigInteger('address_id');
$table->foreign('address_id')->references('id')->on('addresses');
$table->integer('nodelist_id');
$table->bigInteger('nodelist_id');
$table->foreign('nodelist_id')->references('id')->on('nodelists');
$table->unique(['address_id','nodelist_id']);