MarseyWorld/migrations/20240212-add-cw.sql

6 lines
221 B
MySQL
Raw Permalink Normal View History

2024-02-12 18:56:36 +00:00
alter table posts add column cw bool default false not null;
update posts set cw=true where title ilike '%[cw]%' or title ilike '%(cw)%' or title ilike '%child warning%';
alter table posts alter column cw drop default;