Added variant relation type.

This commit is contained in:
DebaucheryLibrarian
2026-11-21 03:07:19 +01:00
parent ceba5e0c39
commit 0d48aa7114
@@ -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) => {