mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
Merge branch 'main' of github.com:/coder/coder into dk/prebuilds
Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
@ -0,0 +1 @@
|
||||
-- No-op, enum values can't be dropped.
|
@ -0,0 +1,13 @@
|
||||
-- Add new audit types for connect and open actions.
|
||||
ALTER TYPE audit_action
|
||||
ADD VALUE IF NOT EXISTS 'connect';
|
||||
ALTER TYPE audit_action
|
||||
ADD VALUE IF NOT EXISTS 'disconnect';
|
||||
ALTER TYPE resource_type
|
||||
ADD VALUE IF NOT EXISTS 'workspace_agent';
|
||||
ALTER TYPE audit_action
|
||||
ADD VALUE IF NOT EXISTS 'open';
|
||||
ALTER TYPE audit_action
|
||||
ADD VALUE IF NOT EXISTS 'close';
|
||||
ALTER TYPE resource_type
|
||||
ADD VALUE IF NOT EXISTS 'workspace_app';
|
@ -0,0 +1,11 @@
|
||||
ALTER TABLE workspace_agent_volume_resource_monitors
|
||||
DROP COLUMN updated_at,
|
||||
DROP COLUMN state,
|
||||
DROP COLUMN debounced_until;
|
||||
|
||||
ALTER TABLE workspace_agent_memory_resource_monitors
|
||||
DROP COLUMN updated_at,
|
||||
DROP COLUMN state,
|
||||
DROP COLUMN debounced_until;
|
||||
|
||||
DROP TYPE workspace_agent_monitor_state;
|
@ -0,0 +1,14 @@
|
||||
CREATE TYPE workspace_agent_monitor_state AS ENUM (
|
||||
'OK',
|
||||
'NOK'
|
||||
);
|
||||
|
||||
ALTER TABLE workspace_agent_memory_resource_monitors
|
||||
ADD COLUMN updated_at timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN state workspace_agent_monitor_state NOT NULL DEFAULT 'OK',
|
||||
ADD COLUMN debounced_until timestamp with time zone NOT NULL DEFAULT '0001-01-01 00:00:00'::timestamptz;
|
||||
|
||||
ALTER TABLE workspace_agent_volume_resource_monitors
|
||||
ADD COLUMN updated_at timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
ADD COLUMN state workspace_agent_monitor_state NOT NULL DEFAULT 'OK',
|
||||
ADD COLUMN debounced_until timestamp with time zone NOT NULL DEFAULT '0001-01-01 00:00:00'::timestamptz;
|
@ -0,0 +1 @@
|
||||
DELETE FROM notification_templates WHERE id = 'c425f63e-716a-4bf4-ae24-78348f706c3f';
|
16
coderd/database/migrations/000295_test_notification.up.sql
Normal file
16
coderd/database/migrations/000295_test_notification.up.sql
Normal file
@ -0,0 +1,16 @@
|
||||
INSERT INTO notification_templates
|
||||
(id, name, title_template, body_template, "group", actions)
|
||||
VALUES (
|
||||
'c425f63e-716a-4bf4-ae24-78348f706c3f',
|
||||
'Test Notification',
|
||||
E'A test notification',
|
||||
E'Hi {{.UserName}},\n\n'||
|
||||
E'This is a test notification.',
|
||||
'Notification Events',
|
||||
'[
|
||||
{
|
||||
"label": "View notification settings",
|
||||
"url": "{{base_url}}/deployment/notifications?tab=settings"
|
||||
}
|
||||
]'::jsonb
|
||||
);
|
Reference in New Issue
Block a user