mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
feat: store coder_workspace_tags
in the database (#13294)
This commit is contained in:
@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS template_version_workspace_tags;
|
6
coderd/database/migrations/000211_workspace_tags.up.sql
Normal file
6
coderd/database/migrations/000211_workspace_tags.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE TABLE IF NOT EXISTS template_version_workspace_tags (
|
||||
template_version_id uuid not null references template_versions (id) on delete cascade,
|
||||
key text not null,
|
||||
value text not null,
|
||||
unique (template_version_id, key)
|
||||
);
|
@ -267,6 +267,7 @@ func TestMigrateUpWithFixtures(t *testing.T) {
|
||||
"workspace_build_parameters",
|
||||
"template_version_variables",
|
||||
"dbcrypt_keys", // having zero rows is a valid state for this table
|
||||
"template_version_workspace_tags",
|
||||
}
|
||||
s := &tableStats{s: make(map[string]int)}
|
||||
|
||||
|
Reference in New Issue
Block a user