Added Blowpass scraper. Split shootId and pageId.

This commit is contained in:
2019-04-06 23:24:26 +02:00
parent 069c2c1628
commit 3a90f98d41
14 changed files with 208 additions and 11 deletions

View File

@@ -5,6 +5,8 @@ exports.up = knex => Promise.resolve()
table.increments('id', 8);
table.string('name');
table.string('gender', 18);
table.integer('alias_for', 8)
.references('id')
.inTable('actors');
@@ -58,7 +60,9 @@ exports.up = knex => Promise.resolve()
.inTable('sites');
table.string('shoot_id');
table.string('entry_id');
table.unique(['site_id', 'shoot_id']);
table.unique(['site_id', 'entry_id']);
table.string('url');
table.string('title');
@@ -116,4 +120,5 @@ exports.down = knex => Promise.resolve()
.then(() => knex.schema.dropTable('sites'))
.then(() => knex.schema.dropTable('networks'))
.then(() => knex.schema.dropTable('actors'))
.then(() => knex.schema.dropTable('directors'))
.then(() => knex.schema.dropTable('tags'));