migrations fix
This commit is contained in:
parent
865b5ff4f4
commit
e84111732e
60 changed files with 0 additions and 0 deletions
|
|
@ -1,10 +0,0 @@
|
|||
ALTER TABLE public.bot_api_update_states
|
||||
ADD COLUMN poll_owner text NOT NULL DEFAULT '',
|
||||
ADD COLUMN poll_expires_at timestamptz;
|
||||
|
||||
ALTER TABLE public.bot_api_update_states
|
||||
ADD CONSTRAINT bot_api_update_states_poll_lease_check CHECK (
|
||||
(poll_owner = '' AND poll_expires_at IS NULL)
|
||||
OR
|
||||
(poll_owner <> '' AND poll_expires_at IS NOT NULL)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue