forked from DebaucheryLibrarian/traxxx
Added Filthy Family and 'legacy' scraper to Bang Bros. Added trans generic avatar. Added pagination support to site actions.
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('countries', (table) => {
|
||||
table.string('alpha2', 2)
|
||||
table.text('alpha2', 2)
|
||||
.unique()
|
||||
.primary();
|
||||
|
||||
table.string('alpha3', 3)
|
||||
table.text('alpha3', 3)
|
||||
.unique();
|
||||
|
||||
table.string('name')
|
||||
table.text('name')
|
||||
.notNullable();
|
||||
|
||||
table.string('alias');
|
||||
table.text('alias');
|
||||
|
||||
table.integer('code', 3);
|
||||
table.string('nationality');
|
||||
table.text('nationality');
|
||||
|
||||
table.integer('priority', 2)
|
||||
.defaultTo(0);
|
||||
}))
|
||||
.then(() => knex.schema.createTable('media', (table) => {
|
||||
table.string('id', 21)
|
||||
table.text('id', 21)
|
||||
.primary();
|
||||
|
||||
table.string('path');
|
||||
table.string('thumbnail');
|
||||
table.string('lazy');
|
||||
table.text('path');
|
||||
table.text('thumbnail');
|
||||
table.text('lazy');
|
||||
table.integer('index');
|
||||
table.string('mime');
|
||||
table.text('mime');
|
||||
|
||||
table.string('hash');
|
||||
table.text('hash');
|
||||
|
||||
table.integer('size', 12);
|
||||
table.integer('quality', 6);
|
||||
@@ -36,14 +36,14 @@ exports.up = knex => Promise.resolve()
|
||||
table.integer('height', 6);
|
||||
table.float('entropy');
|
||||
|
||||
table.string('scraper', 32);
|
||||
table.string('copyright', 100);
|
||||
table.text('scraper', 32);
|
||||
table.text('copyright', 100);
|
||||
|
||||
table.string('source', 2100);
|
||||
table.string('source_page', 2100);
|
||||
table.text('source', 2100);
|
||||
table.text('source_page', 2100);
|
||||
|
||||
table.text('comment');
|
||||
table.string('group');
|
||||
table.text('group');
|
||||
|
||||
table.unique('hash');
|
||||
table.unique('source');
|
||||
@@ -52,10 +52,10 @@ exports.up = knex => Promise.resolve()
|
||||
.defaultTo(knex.fn.now());
|
||||
}))
|
||||
.then(() => knex.schema.createTable('media_sfw', (table) => {
|
||||
table.string('id', 21)
|
||||
table.text('id', 21)
|
||||
.primary();
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.references('id')
|
||||
.inTable('media')
|
||||
.unique();
|
||||
@@ -71,7 +71,7 @@ exports.up = knex => Promise.resolve()
|
||||
`);
|
||||
})
|
||||
.then(() => knex.schema.alterTable('media', (table) => {
|
||||
table.string('sfw_media_id', 21)
|
||||
table.text('sfw_media_id', 21)
|
||||
.references('id')
|
||||
.inTable('media')
|
||||
.defaultTo(knex.raw('get_random_sfw_media_id()'));
|
||||
@@ -79,10 +79,10 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('tags_groups', (table) => {
|
||||
table.increments('id', 12);
|
||||
|
||||
table.string('name', 32);
|
||||
table.text('name', 32);
|
||||
table.text('description');
|
||||
|
||||
table.string('slug', 32)
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
|
||||
table.datetime('created_at')
|
||||
@@ -90,7 +90,7 @@ exports.up = knex => Promise.resolve()
|
||||
}))
|
||||
.then(() => knex.schema.createTable('tags', (table) => {
|
||||
table.increments('id', 12);
|
||||
table.string('name');
|
||||
table.text('name');
|
||||
|
||||
table.text('description');
|
||||
|
||||
@@ -108,7 +108,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('tags');
|
||||
|
||||
table.string('slug', 32)
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
|
||||
table.datetime('created_at')
|
||||
@@ -120,7 +120,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('tags');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -133,7 +133,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('tags');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -143,9 +143,9 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('networks', (table) => {
|
||||
table.increments('id', 12);
|
||||
|
||||
table.string('name');
|
||||
table.string('alias');
|
||||
table.string('url');
|
||||
table.text('name');
|
||||
table.text('alias');
|
||||
table.text('url');
|
||||
table.text('description');
|
||||
table.json('parameters');
|
||||
|
||||
@@ -153,7 +153,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('networks');
|
||||
|
||||
table.string('slug', 32)
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
|
||||
table.datetime('created_at')
|
||||
@@ -162,8 +162,8 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('networks_social', (table) => {
|
||||
table.increments('id', 16);
|
||||
|
||||
table.string('url');
|
||||
table.string('platform');
|
||||
table.text('url');
|
||||
table.text('platform');
|
||||
|
||||
table.integer('network_id', 12)
|
||||
.notNullable()
|
||||
@@ -183,13 +183,13 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('networks');
|
||||
|
||||
table.string('name');
|
||||
table.string('slug', 32)
|
||||
table.text('name');
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
|
||||
table.string('alias');
|
||||
table.text('alias');
|
||||
|
||||
table.string('url');
|
||||
table.text('url');
|
||||
table.text('description');
|
||||
table.json('parameters');
|
||||
|
||||
@@ -221,8 +221,8 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('sites_social', (table) => {
|
||||
table.increments('id', 16);
|
||||
|
||||
table.string('url');
|
||||
table.string('platform');
|
||||
table.text('url');
|
||||
table.text('platform');
|
||||
|
||||
table.integer('site_id', 12)
|
||||
.notNullable()
|
||||
@@ -242,11 +242,11 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('networks');
|
||||
|
||||
table.string('name');
|
||||
table.string('url');
|
||||
table.text('name');
|
||||
table.text('url');
|
||||
table.text('description');
|
||||
|
||||
table.string('slug', 32)
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
|
||||
table.datetime('created_at')
|
||||
@@ -262,13 +262,13 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('actors', (table) => {
|
||||
table.increments('id', 12);
|
||||
|
||||
table.string('name')
|
||||
table.text('name')
|
||||
.notNullable();
|
||||
|
||||
table.string('slug', 32)
|
||||
table.text('slug', 32)
|
||||
.notNullable();
|
||||
|
||||
table.string('real_name');
|
||||
table.text('real_name');
|
||||
|
||||
table.integer('network_id', 12)
|
||||
.references('id')
|
||||
@@ -281,24 +281,24 @@ exports.up = knex => Promise.resolve()
|
||||
table.date('date_of_birth');
|
||||
table.date('date_of_death');
|
||||
|
||||
table.string('gender', 18);
|
||||
table.text('gender', 18);
|
||||
table.text('description');
|
||||
|
||||
table.string('birth_city');
|
||||
table.string('birth_state');
|
||||
table.string('birth_country_alpha2', 2)
|
||||
table.text('birth_city');
|
||||
table.text('birth_state');
|
||||
table.text('birth_country_alpha2', 2)
|
||||
.references('alpha2')
|
||||
.inTable('countries');
|
||||
|
||||
table.string('residence_city');
|
||||
table.string('residence_state');
|
||||
table.string('residence_country_alpha2', 2)
|
||||
table.text('residence_city');
|
||||
table.text('residence_state');
|
||||
table.text('residence_country_alpha2', 2)
|
||||
.references('alpha2')
|
||||
.inTable('countries');
|
||||
|
||||
table.string('ethnicity');
|
||||
table.text('ethnicity');
|
||||
|
||||
table.string('cup', 4);
|
||||
table.text('cup', 4);
|
||||
table.integer('bust', 3);
|
||||
table.integer('waist', 3);
|
||||
table.integer('hip', 3);
|
||||
@@ -306,15 +306,16 @@ exports.up = knex => Promise.resolve()
|
||||
|
||||
table.integer('height', 3);
|
||||
table.integer('weight', 3);
|
||||
table.string('eyes');
|
||||
table.string('hair');
|
||||
table.text('eyes');
|
||||
table.text('hair_color');
|
||||
table.text('hair_length');
|
||||
|
||||
table.boolean('has_tattoos');
|
||||
table.boolean('has_piercings');
|
||||
table.string('piercings');
|
||||
table.string('tattoos');
|
||||
table.text('piercings');
|
||||
table.text('tattoos');
|
||||
|
||||
table.string('avatar_media_id', 21)
|
||||
table.text('avatar_media_id', 21)
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
|
||||
@@ -348,30 +349,30 @@ exports.up = knex => Promise.resolve()
|
||||
table.integer('priority', 4)
|
||||
.defaultTo(1);
|
||||
|
||||
table.string('real_name');
|
||||
table.string('gender', 18);
|
||||
table.text('real_name');
|
||||
table.text('gender', 18);
|
||||
|
||||
table.date('date_of_birth');
|
||||
table.date('date_of_death');
|
||||
|
||||
table.text('description');
|
||||
table.string('description_hash');
|
||||
table.text('description_hash');
|
||||
|
||||
table.string('birth_city');
|
||||
table.string('birth_state');
|
||||
table.string('birth_country_alpha2', 2)
|
||||
table.text('birth_city');
|
||||
table.text('birth_state');
|
||||
table.text('birth_country_alpha2', 2)
|
||||
.references('alpha2')
|
||||
.inTable('countries');
|
||||
|
||||
table.string('residence_city');
|
||||
table.string('residence_state');
|
||||
table.string('residence_country_alpha2', 2)
|
||||
table.text('residence_city');
|
||||
table.text('residence_state');
|
||||
table.text('residence_country_alpha2', 2)
|
||||
.references('alpha2')
|
||||
.inTable('countries');
|
||||
|
||||
table.string('ethnicity');
|
||||
table.text('ethnicity');
|
||||
|
||||
table.string('cup', 4);
|
||||
table.text('cup', 4);
|
||||
table.integer('bust', 3);
|
||||
table.integer('waist', 3);
|
||||
table.integer('hip', 3);
|
||||
@@ -379,15 +380,16 @@ exports.up = knex => Promise.resolve()
|
||||
|
||||
table.integer('height', 3);
|
||||
table.integer('weight', 3);
|
||||
table.string('eyes');
|
||||
table.string('hair');
|
||||
table.text('eyes');
|
||||
table.text('hair_color');
|
||||
table.text('hair_length');
|
||||
|
||||
table.boolean('has_tattoos');
|
||||
table.boolean('has_piercings');
|
||||
table.string('piercings');
|
||||
table.string('tattoos');
|
||||
table.text('piercings');
|
||||
table.text('tattoos');
|
||||
|
||||
table.string('avatar_media_id', 21)
|
||||
table.text('avatar_media_id', 21)
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
|
||||
@@ -401,10 +403,10 @@ exports.up = knex => Promise.resolve()
|
||||
.defaultTo(knex.fn.now());
|
||||
}))
|
||||
.then(() => knex.schema.createTable('body', (table) => {
|
||||
table.string('slug', 20)
|
||||
table.text('slug', 20)
|
||||
.primary();
|
||||
|
||||
table.string('name');
|
||||
table.text('name');
|
||||
}))
|
||||
.then(() => { // eslint-disable-line arrow-body-style
|
||||
// allow vim fold
|
||||
@@ -533,13 +535,13 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('actors');
|
||||
|
||||
table.string('body_slug', 20)
|
||||
table.text('body_slug', 20)
|
||||
.references('slug')
|
||||
.inTable('body');
|
||||
|
||||
table.enum('side', ['left', 'right', 'center', 'both']);
|
||||
|
||||
table.string('description');
|
||||
table.text('description');
|
||||
|
||||
table.datetime('created_at')
|
||||
.defaultTo(knex.fn.now());
|
||||
@@ -552,13 +554,13 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('actors');
|
||||
|
||||
table.string('body_slug', 20)
|
||||
table.text('body_slug', 20)
|
||||
.references('slug')
|
||||
.inTable('body');
|
||||
|
||||
table.enum('side', ['left', 'right', 'center', 'both']);
|
||||
|
||||
table.string('description');
|
||||
table.text('description');
|
||||
|
||||
table.datetime('created_at')
|
||||
.defaultTo(knex.fn.now());
|
||||
@@ -569,7 +571,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('actors_profiles');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -582,7 +584,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('actors');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -592,8 +594,8 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('actors_social', (table) => {
|
||||
table.increments('id', 16);
|
||||
|
||||
table.string('url');
|
||||
table.string('platform');
|
||||
table.text('url');
|
||||
table.text('platform');
|
||||
|
||||
table.integer('actor_id', 12)
|
||||
.notNullable()
|
||||
@@ -608,12 +610,12 @@ exports.up = knex => Promise.resolve()
|
||||
.then(() => knex.schema.createTable('directors', (table) => {
|
||||
table.increments('id', 12);
|
||||
|
||||
table.string('name');
|
||||
table.text('name');
|
||||
table.integer('alias_for', 12)
|
||||
.references('id')
|
||||
.inTable('directors');
|
||||
|
||||
table.string('slug', 32)
|
||||
table.text('slug', 32)
|
||||
.unique();
|
||||
|
||||
table.datetime('created_at')
|
||||
@@ -634,16 +636,16 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('studios');
|
||||
|
||||
table.string('type', 10)
|
||||
table.text('type', 10)
|
||||
.defaultTo('scene');
|
||||
|
||||
table.string('shoot_id');
|
||||
table.string('entry_id');
|
||||
table.text('shoot_id');
|
||||
table.text('entry_id');
|
||||
table.unique(['site_id', 'network_id', 'entry_id', 'type']);
|
||||
|
||||
table.string('url', 1000);
|
||||
table.string('title');
|
||||
table.string('slug');
|
||||
table.text('url', 1000);
|
||||
table.text('title');
|
||||
table.text('slug');
|
||||
|
||||
table.date('date');
|
||||
table.index('date');
|
||||
@@ -654,7 +656,7 @@ exports.up = knex => Promise.resolve()
|
||||
.unsigned();
|
||||
|
||||
table.boolean('deep');
|
||||
table.string('deep_url', 1000);
|
||||
table.text('deep_url', 1000);
|
||||
|
||||
table.integer('created_batch_id', 12)
|
||||
.references('id')
|
||||
@@ -718,7 +720,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('releases');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -731,7 +733,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('releases');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -744,7 +746,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('releases');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -757,7 +759,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('releases');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
@@ -770,7 +772,7 @@ exports.up = knex => Promise.resolve()
|
||||
.references('id')
|
||||
.inTable('releases');
|
||||
|
||||
table.string('media_id', 21)
|
||||
table.text('media_id', 21)
|
||||
.notNullable()
|
||||
.references('id')
|
||||
.inTable('media');
|
||||
|
||||
Reference in New Issue
Block a user