Fixed photo query in Aziana scraper.

This commit is contained in:
DebaucheryLibrarian
2023-08-03 23:24:23 +02:00
parent 2ebc2d441f
commit b287f5c2db
4 changed files with 15 additions and 3 deletions

View File

@@ -5,7 +5,8 @@ exports.up = async (knex) => {
table.integer('release_id')
.notNullable()
.references('id')
.inTable('releases');
.inTable('releases')
.onDelete('cascade');
table.text('media_id')
.notNullable()

View File

@@ -2,10 +2,18 @@ exports.up = async (knex) => {
await knex.schema.alterTable('releases', (table) => {
table.specificType('alt_titles', 'text ARRAY');
});
await knex.schema.alterTable('movies', (table) => {
table.specificType('alt_titles', 'text ARRAY');
});
};
exports.down = async (knex) => {
await knex.schema.alterTable('releases', (table) => {
table.dropColumn('alt_titles');
});
await knex.schema.alterTable('movies', (table) => {
table.dropColumn('alt_titles');
});
};