Skip to content

Commit

Permalink
Add primary keys to database tables (#1425)
Browse files Browse the repository at this point in the history
As suggested in #1380, this PR adds Primary keys to the `telescope_entries_tags` and the `telescope_monitoring` tables, to allow HA MySQL deployments.

Co-authored-by: Zois Pagoulatos <[email protected]>
  • Loading branch information
driesvints and zoispag authored Jan 22, 2024
1 parent 80636b7 commit 3cbe70e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function up(): void
$table->uuid('entry_uuid');
$table->string('tag');

$table->index(['entry_uuid', 'tag']);
$table->primary(['entry_uuid', 'tag']);
$table->index('tag');

$table->foreign('entry_uuid')
Expand All @@ -52,7 +52,7 @@ public function up(): void
});

$schema->create('telescope_monitoring', function (Blueprint $table) {
$table->string('tag');
$table->string('tag')->primary();
});
}

Expand Down

0 comments on commit 3cbe70e

Please sign in to comment.