Closes #25 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
11 lines
479 B
SQL
11 lines
479 B
SQL
-- +goose Up
|
|
ALTER TABLE monitors DROP CONSTRAINT monitors_type_check;
|
|
ALTER TABLE monitors ADD CONSTRAINT monitors_type_check
|
|
CHECK (type IN ('http', 'tcp', 'icmp', 'dns', 'tls', 'json', 'prometheus', 'heartbeat'));
|
|
|
|
-- +goose Down
|
|
DELETE FROM monitors WHERE type = 'prometheus';
|
|
ALTER TABLE monitors DROP CONSTRAINT monitors_type_check;
|
|
ALTER TABLE monitors ADD CONSTRAINT monitors_type_check
|
|
CHECK (type IN ('http', 'tcp', 'icmp', 'dns', 'tls', 'json', 'heartbeat'));
|