Reusing batch ID for movies to preserve new-flag.

This commit is contained in:
DebaucheryLibrarian
2022-01-20 00:54:10 +01:00
parent 372db86927
commit 20da2d1cf6
6 changed files with 16 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
const config = require('config');
exports.up = knex => Promise.resolve()
exports.up = (knex) => Promise.resolve()
.then(() => knex.schema.createTable('countries', (table) => {
table.text('alpha2', 2)
.unique()

View File

@@ -1,4 +1,4 @@
exports.up = async knex => knex.raw(`
exports.up = async (knex) => knex.raw(`
CREATE FUNCTION entities_scenes(entity entities) RETURNS SETOF releases AS $$
WITH RECURSIVE children AS (
SELECT entities.id
@@ -19,6 +19,6 @@ exports.up = async knex => knex.raw(`
COMMENT ON FUNCTION entities_scenes IS E'@sortable';
`);
exports.down = async knex => knex.raw(`
exports.down = async (knex) => knex.raw(`
DROP FUNCTION IF EXISTS entities_scenes;
`);