Storing original tags.

This commit is contained in:
DebaucheryLibrarian
2021-10-10 00:04:21 +02:00
parent 6c298cd639
commit b6ad2903f3
29 changed files with 27 additions and 11 deletions

View File

@@ -792,7 +792,6 @@ exports.up = knex => Promise.resolve()
}))
.then(() => knex.schema.createTable('releases_tags', (table) => {
table.integer('tag_id', 12)
.notNullable()
.references('id')
.inTable('tags');
@@ -802,6 +801,8 @@ exports.up = knex => Promise.resolve()
.inTable('releases')
.onDelete('cascade');
table.text('original_tag');
table.unique(['tag_id', 'release_id']);
}))
.then(() => knex.schema.createTable('releases_search', (table) => {