taskcafe/migrations/0072_remove-not-null-from-notification-caused_by.up.sql

3 lines
164 B
MySQL
Raw Normal View History

2021-11-18 00:11:28 +01:00
ALTER TABLE notification ALTER COLUMN caused_by DROP NOT NULL;
UPDATE notification SET caused_by = null WHERE caused_by = '00000000-0000-0000-0000-000000000000';