owpengram-server/deploy/migrations/0054_group_call_scheduled.up.sql

10 lines
422 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Scheduled video chatgroup_calls 增加 schedule_date>0=定时未开始);
-- 开播提醒订阅toggleGroupCallStartSubscription 的 per-user 状态)。
ALTER TABLE group_calls
ADD COLUMN IF NOT EXISTS schedule_date integer DEFAULT 0 NOT NULL;
CREATE TABLE IF NOT EXISTS group_call_schedule_subscribers (
call_id bigint NOT NULL,
user_id bigint NOT NULL,
PRIMARY KEY (call_id, user_id)
);