Added variant relation type.
This commit is contained in:
@@ -2,12 +2,18 @@ exports.up = async function(knex) {
|
||||
await knex.schema.createTable('relations_types', (table) => {
|
||||
table.text('type')
|
||||
.primary();
|
||||
|
||||
// symmetric relations have no direction, e.g. wet and dry variants of each other, stored with the lowest scene ID as the source
|
||||
table.boolean('symmetric')
|
||||
.notNullable()
|
||||
.defaultTo(false);
|
||||
});
|
||||
|
||||
await knex('relations_types').insert([
|
||||
{ type: 'rerelease' },
|
||||
{ type: 'remaster' },
|
||||
{ type: 'compilation' },
|
||||
{ type: 'variant', symmetric: true },
|
||||
]);
|
||||
|
||||
await knex.schema.createTable('scenes_relations', (table) => {
|
||||
|
||||
Reference in New Issue
Block a user