Improved media handling, added trailer support. Fetching media from Vixen network frontpages.

This commit is contained in:
2019-09-25 04:52:58 +02:00
parent b12d74cbb3
commit 96d8cfbcb6
10 changed files with 141 additions and 51 deletions

View File

@@ -115,14 +115,15 @@ exports.up = knex => Promise.resolve()
.then(() => knex.schema.createTable('media', (table) => {
table.increments('id', 16);
table.string('file');
table.string('path');
table.integer('index');
table.string('mime');
table.enum('domain', ['networks', 'sites', 'releases', 'actors', 'directors']);
table.integer('target_id', 16);
table.enum('role', ['poster', 'logo', 'profile']);
table.enum('role', ['photo', 'poster', 'trailer', 'logo', 'profile']);
table.string('quality', 6);
}))
.then(() => knex.schema.createTable('actors_associated', (table) => {
table.increments('id', 16);