owpengram-server/deploy/migrations/0030_user_update_channel_peers.down.sql
2026-06-04 01:37:39 +08:00

8 lines
284 B
SQL

-- 0030_user_update_channel_peers rollback.
ALTER TABLE user_update_events
DROP CONSTRAINT IF EXISTS user_update_events_peer_type_check;
ALTER TABLE user_update_events
ADD CONSTRAINT user_update_events_peer_type_check
CHECK (peer_type IS NULL OR peer_type IN ('user'));