tirocinio-canali-steffo-acrate/acrate_database/migrations/2024-11-18-160501_meta_subject-null/up.sql

6 lines
216 B
MySQL
Raw Normal View History

ALTER TABLE meta_subjects DROP CONSTRAINT either_subject_or_redirect_not_null;
ALTER TABLE meta_subjects ALTER subject DROP NOT NULL;
UPDATE meta_subjects SET subject = NULL WHERE subject = 'invalid:subject.null';