Files
uptimesebi/internal/migrations/sql/00050_incident_update_message_optional.sql
T
Sebastian UnterschützandClaude Opus 5.5 437b6e934f
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 12m19s
ci / test (pull_request) Successful in 12m58s
ci / build (pull_request) Successful in 15m32s
ci / image (pull_request) Successful in 4m29s
feat(console): set an incident's status right in the incident list
Each row of the incident list offers "Set status" to those who may write
the monitor's incidents: a status (built-in or own, the next one
preselected), an optional message and whether it shows on status pages.
An update may now just change the status, without a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-23 23:57:05 +01:00

10 lines
534 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- +goose Up
-- An update may just change the status, without a message.
ALTER TABLE incident_updates DROP CONSTRAINT incident_updates_message_check;
ALTER TABLE incident_updates ADD CONSTRAINT incident_updates_message_check CHECK (length(message) <= 5000);
-- +goose Down
UPDATE incident_updates SET message = '–' WHERE message = '';
ALTER TABLE incident_updates DROP CONSTRAINT incident_updates_message_check;
ALTER TABLE incident_updates ADD CONSTRAINT incident_updates_message_check CHECK (length(message) BETWEEN 1 AND 5000);