From e0945a637b5c0c8b5b1d3a388f63620a326e7c48 Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Thu, 5 May 2022 10:27:02 -0600 Subject: [PATCH] feat: Add primary key to analytics child tables --- .../migrations/2019_12_08_100000_create_analytics_table.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database/migrations/2019_12_08_100000_create_analytics_table.php b/src/database/migrations/2019_12_08_100000_create_analytics_table.php index 9891f75..b3b3fa7 100644 --- a/src/database/migrations/2019_12_08_100000_create_analytics_table.php +++ b/src/database/migrations/2019_12_08_100000_create_analytics_table.php @@ -25,6 +25,7 @@ public function up() }); Schema::create(ServerAnalytics::getAnalyticsRelationTable(), function (Blueprint $table) { + $table->bigIncrements('id'); $table->unsignedBigInteger('analytics_id'); $table->foreign('analytics_id') ->references('id') @@ -33,6 +34,7 @@ public function up() }); Schema::create(ServerAnalytics::getAnalyticsMetaTable(), function (Blueprint $table) { + $table->bigIncrements('id'); $table->unsignedBigInteger('analytics_id'); $table->foreign('analytics_id') ->references('id')