blob: 99336bf494a728e94c10eab989478c290bb847b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
exports.up = function(knex, Promise) {
return knex.schema.createTable('files', function (table) {
table.increments()
table.integer('folder_id')
table.string('username')
table.string('name')
table.string('url')
table.string('mime')
table.string('datatype')
table.float('duration')
table.text('analysis')
table.integer('size')
table.string('activity')
table.string('module')
table.string('checkpoint')
table.string('dataset')
table.string('epoch')
table.json('opt')
table.boolean('processed')
table.boolean('generated')
table.timestamps()
})
};
exports.down = function(knex, Promise) {
return knex.schema.dropTable('files')
};
|