handletelegram: fix disabling disappearing timer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- v0 -> v3 (compatible with v2+): Latest revision
|
||||
-- v0 -> v4 (compatible with v2+): Latest revision
|
||||
|
||||
CREATE TABLE telegram_user_state (
|
||||
user_id BIGINT NOT NULL PRIMARY KEY,
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-- v4 (compatible with v2+): Clear invalid disappearing timers in portal table
|
||||
UPDATE portal
|
||||
SET disappear_type=NULL, disappear_timer=NULL
|
||||
WHERE disappear_timer=0 OR disappear_timer IS NULL OR disappear_type IS NULL;
|
||||
Reference in New Issue
Block a user