mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
WIP pass the failed tests.
This commit is contained in:
@@ -4,6 +4,7 @@ exports.up = function (knex) {
|
||||
table.increments();
|
||||
table.string('name');
|
||||
table.string('type');
|
||||
table.string('sku');
|
||||
table.decimal('cost_price').unsigned();
|
||||
table.decimal('sell_price').unsigned();
|
||||
table.string('currency_code', 3);
|
||||
@@ -15,7 +16,7 @@ exports.up = function (knex) {
|
||||
table.integer('category_id').unsigned();
|
||||
table.integer('user_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
}).raw('ALTER TABLE `ITEMS` AUTO_INCREMENT = 1000');;
|
||||
};
|
||||
|
||||
exports.down = (knex) => knex.schema.dropTableIfExists('items');
|
||||
|
||||
Reference in New Issue
Block a user