Added content version table. Marked ElevatedX scraper as deprecated, fixed ExploitedCollegeGirls queries.

This commit is contained in:
DebaucheryLibrarian
2024-09-08 03:09:44 +02:00
parent cab1823f81
commit 6e1c4a9de8
3 changed files with 48 additions and 4 deletions

View File

@@ -0,0 +1,41 @@
exports.up = async (knex) => {
await knex.schema.createTable('scenes_revisions', (table) => {
table.increments('id');
table.integer('scene_id')
.notNullable()
.references('id')
.inTable('releases');
table.integer('user_id')
.references('id')
.inTable('users');
table.json('data');
table.json('deltas');
table.text('comment');
table.boolean('approved')
.notNullable()
.defaultTo(false);
table.integer('approved_by')
.references('id')
.inTable('users');
table.boolean('applied')
.notNullable()
.defaultTo(false);
table.datetime('applied_at');
table.datetime('created_at')
.notNullable()
.defaultTo(knex.fn.now());
});
};
exports.down = async (knex) => {
await knex.schema.dropTable('scenes_revisions');
};