Reworked tag matching. Added tag filter groundwork.

This commit is contained in:
2019-10-28 00:58:54 +01:00
parent 2c32ed6549
commit 0e784a274f
7 changed files with 338 additions and 290 deletions

View File

@@ -34,7 +34,7 @@ exports.up = knex => Promise.resolve()
}))
.then(() => knex.schema.createTable('tags', (table) => {
table.increments('id', 12);
table.string('tag');
table.string('name');
table.integer('group_id', 12)
.references('id')
@@ -53,6 +53,7 @@ exports.up = knex => Promise.resolve()
table.string('name');
table.string('url');
table.text('description');
table.enum('orientation', ['gay', 'bi', 'lesbian', 'trans']);
table.string('slug', 32)
.unique();
@@ -68,6 +69,7 @@ exports.up = knex => Promise.resolve()
table.string('name');
table.string('url');
table.text('description');
table.enum('orientation', ['gay', 'bi', 'lesbian', 'trans']);
table.string('parameters');
table.string('slug', 32)
@@ -107,6 +109,7 @@ exports.up = knex => Promise.resolve()
table.integer('rating')
.unsigned();
table.enum('orientation', ['gay', 'bi', 'lesbian', 'trans']);
table.boolean('deep');
table.datetime('created_at')