Skip to content

Commit

Permalink
feat: Add primary key to analytics child tables
Browse files Browse the repository at this point in the history
  • Loading branch information
owenconti committed May 5, 2022
1 parent 16b5cc8 commit e0945a6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit e0945a6

Please sign in to comment.