exports.up = async (knex) => { await knex.raw(` /* allow scenes without dates to be mixed inbetween scenes with dates */ ALTER TABLE series ADD COLUMN effective_date timestamptz GENERATED ALWAYS AS (COALESCE(date, created_at)) STORED; `); }; exports.down = async (knex) => { await knex.schema.alterTable('series', (table) => { table.dropColumn('effective_date'); }); };