D
Size: a a a
D
Gt
VG
А
General error: 1215 Cannot add foreign key constraint (SQL: alter table `servers` add constraint `servers_cluster_id_foreign` foreign key (`cluster_id`) references `clusters` (`id`) on delete cascade)Сама миграция
$table->engine = 'InnoDB';
$table->bigIncrements('id');
$table->string('cluster_id')->nullable();
$table->string('title')->default(null)->nullable();
$table->string('ip')->default(null)->nullable();
$table->string('id_rsa')->default(null)->nullable();
$table->string('active')->default(true);
$table->timestamps();
$table->foreign('cluster_id')->references('id')->on('clusters')->onDelete('cascade');
$table->primary(['cluster_id']);
А
M
Gt
D
DF
AP
D
V
M
D
AK
D
Gt
AK
ДК