Fixed tags module not dealing with empty releases or tags, added origin tag column to chapter tag table.

This commit is contained in:
DebaucheryLibrarian
2021-10-17 00:28:13 +02:00
parent b1b2ad2111
commit 167df35d37
5 changed files with 19 additions and 9 deletions

View File

@@ -986,7 +986,6 @@ exports.up = knex => Promise.resolve()
}))
.then(() => knex.schema.createTable('chapters_tags', (table) => {
table.integer('tag_id', 12)
.notNullable()
.references('id')
.inTable('tags')
.onDelete('cascade');
@@ -997,6 +996,8 @@ exports.up = knex => Promise.resolve()
.inTable('chapters')
.onDelete('cascade');
table.text('original_tag');
table.unique(['tag_id', 'chapter_id']);
}))
.then(() => knex.schema.createTable('users_roles', (table) => {