nodelist and nodelist_address should be using bigints
This commit is contained in:
parent
5957a25044
commit
9de2469053
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user