migrations fix
This commit is contained in:
parent
865b5ff4f4
commit
e84111732e
60 changed files with 0 additions and 0 deletions
|
|
@ -1,13 +0,0 @@
|
|||
DELETE FROM public.bot_api_updates
|
||||
WHERE ephemeral_payload IS NOT NULL;
|
||||
|
||||
DROP INDEX IF EXISTS public.bot_api_updates_ephemeral_version_unique;
|
||||
DROP INDEX IF EXISTS public.bot_api_updates_message_source_unique;
|
||||
|
||||
ALTER TABLE public.bot_api_updates
|
||||
DROP CONSTRAINT bot_api_updates_ephemeral_shape_check,
|
||||
DROP COLUMN ephemeral_payload;
|
||||
|
||||
CREATE UNIQUE INDEX bot_api_updates_message_source_unique
|
||||
ON public.bot_api_updates (bot_user_id, update_kind, peer_type, peer_id, message_id, source_pts)
|
||||
WHERE update_kind IN ('message', 'edited_message');
|
||||
Loading…
Add table
Add a link
Reference in a new issue