044eb7f1ae
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XNQ8ghPfzAfsyVYd6HgFb6
6 lines
416 B
SQL
6 lines
416 B
SQL
-- Telegram: Kombinieren/Erzeugen — Bildunterschrift als Beschreibung + Zwischenstatus.
|
|
ALTER TABLE telegram_drafts ADD COLUMN IF NOT EXISTS caption text;
|
|
ALTER TABLE telegram_drafts DROP CONSTRAINT IF EXISTS telegram_drafts_status_check;
|
|
ALTER TABLE telegram_drafts ADD CONSTRAINT telegram_drafts_status_check
|
|
CHECK (status IN ('collecting','awaiting_recipe','awaiting_compose_text','dispatched','discarded'));
|