mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-12 02:40:31 +00:00
15 lines
406 B
JavaScript
15 lines
406 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema.createTable('documents', (table) => {
|
|
table.increments('id').primary();
|
|
table.string('key').notNullable();
|
|
table.string('mime_type').notNullable();
|
|
table.integer('size').unsigned();
|
|
table.string('origin_name');
|
|
table.timestamps();
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.dropTableIfExists('documents');
|
|
};
|