mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: clean up the imported temp files
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
exports.up = function (knex) {
|
||||
return knex.schema.createTable('imports', (table) => {
|
||||
table.increments();
|
||||
table.string('filename');
|
||||
table.string('import_id');
|
||||
table.string('resource');
|
||||
table.json('columns');
|
||||
table.json('mapping');
|
||||
table.json('params');
|
||||
table
|
||||
.bigInteger('tenant_id')
|
||||
.unsigned()
|
||||
.index()
|
||||
.references('id')
|
||||
.inTable('tenants');
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = function (knex) {
|
||||
return knex.schema.dropTableIfExists('imports');
|
||||
};
|
||||
Reference in New Issue
Block a user