radiostasis/db/migrations/010-date_updated.sql

12 lines
297 B
MySQL
Raw Normal View History

2023-04-23 14:59:30 -05:00
alter table series
add column date_updated timestamp;
update series
set date_updated='2023-04-15';
pragma writable_schema=on;
update sqlite_master
set sql=replace(sql, 'date_updated timestamp', 'date_updated timestamp not null')
where type='table' and name='series';
pragma writable_schema=off;