mirror of
https://github.com/coder/coder.git
synced 2026-06-05 22:18:20 +00:00
chore: add archive column to template versions (#10178)
* chore: add archive column to template versions
This commit is contained in:
Generated
+3
-1
@@ -676,7 +676,8 @@ CREATE TABLE template_versions (
|
||||
job_id uuid NOT NULL,
|
||||
created_by uuid NOT NULL,
|
||||
external_auth_providers text[],
|
||||
message character varying(1048576) DEFAULT ''::character varying NOT NULL
|
||||
message character varying(1048576) DEFAULT ''::character varying NOT NULL,
|
||||
archived boolean DEFAULT false NOT NULL
|
||||
);
|
||||
|
||||
COMMENT ON COLUMN template_versions.external_auth_providers IS 'IDs of External auth providers for a specific template version';
|
||||
@@ -721,6 +722,7 @@ CREATE VIEW template_version_with_user AS
|
||||
template_versions.created_by,
|
||||
template_versions.external_auth_providers,
|
||||
template_versions.message,
|
||||
template_versions.archived,
|
||||
COALESCE(visible_users.avatar_url, ''::text) AS created_by_avatar_url,
|
||||
COALESCE(visible_users.username, ''::text) AS created_by_username
|
||||
FROM (public.template_versions
|
||||
|
||||
Reference in New Issue
Block a user