Skip to content

Commit e0945a6

Browse files
committed
feat: Add primary key to analytics child tables
1 parent 16b5cc8 commit e0945a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/database/migrations/2019_12_08_100000_create_analytics_table.php

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function up()
2525
});
2626

2727
Schema::create(ServerAnalytics::getAnalyticsRelationTable(), function (Blueprint $table) {
28+
$table->bigIncrements('id');
2829
$table->unsignedBigInteger('analytics_id');
2930
$table->foreign('analytics_id')
3031
->references('id')
@@ -33,6 +34,7 @@ public function up()
3334
});
3435

3536
Schema::create(ServerAnalytics::getAnalyticsMetaTable(), function (Blueprint $table) {
37+
$table->bigIncrements('id');
3638
$table->unsignedBigInteger('analytics_id');
3739
$table->foreign('analytics_id')
3840
->references('id')

0 commit comments

Comments
 (0)