Added Lucid Flix and Tough Love X to Radical.
This commit is contained in:
14
migrations/20260123051908_serie_effective_date.js
Normal file
14
migrations/20260123051908_serie_effective_date.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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');
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user