Added seed file for test data.

This commit is contained in:
2020-02-27 00:38:11 +01:00
parent bb2fe82c84
commit 97cf5b2b6b
10 changed files with 220 additions and 71 deletions

View File

@@ -33,10 +33,10 @@ exports.up = knex => Promise.resolve()
table.integer('height', 6);
table.float('entropy');
table.text('comment');
table.string('scraper', 32);
table.string('copyright', 100);
table.string('source', 1000);
table.text('comment');
table.unique('hash');
table.unique('source');
@@ -359,6 +359,7 @@ exports.up = knex => Promise.resolve()
table.boolean('deep');
table.string('deep_url', 1000);
table.string('batch');
table.datetime('created_at')
.defaultTo(knex.fn.now());
}))