Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change TelemetryItem's key to PK
  • Loading branch information
hugodutka committed Jan 30, 2025
commit 6554aa31eface2a15ebee877972b66f1255ca96e
5 changes: 3 additions & 2 deletions coderd/database/dump.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions coderd/database/migrations/000288_telemetry_items.up.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
CREATE TABLE telemetry_items (
key TEXT NOT NULL,
key TEXT NOT NULL PRIMARY KEY,
value TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);

CREATE UNIQUE INDEX telemetry_items_key_idx ON telemetry_items (key);
2 changes: 1 addition & 1 deletion coderd/database/unique_constraint.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading