migrations fix

This commit is contained in:
onysd 2026-07-21 00:18:12 +03:00
parent 865b5ff4f4
commit e84111732e
60 changed files with 0 additions and 0 deletions

View file

@ -1,12 +0,0 @@
ALTER TABLE public.bot_api_update_states
ADD COLUMN allowed_updates text[],
ADD COLUMN cursor_initialized boolean NOT NULL DEFAULT false;
ALTER TABLE public.bot_api_update_states
ADD CONSTRAINT bot_api_update_states_allowed_updates_check CHECK (
allowed_updates IS NULL
OR array_position(allowed_updates, NULL) IS NULL
);
CREATE INDEX bot_api_updates_created_retention_idx
ON public.bot_api_updates (created_at, id);