aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/orders.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-02 11:02:06 -0700
committerAdam Soltys <[email protected]>2022-09-02 11:02:06 -0700
commit7a8d64833de8873afb92982b3f5bfff59b30c542 (patch)
treebc92e20c7d5127d3b6b17f7b8d3190e08579f49e /db/normalized/orders.js
parentb06e117af96a38b163384f6a343f1de7c8996724 (diff)
downloadcoinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.tar.gz
coinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.zip
es6 migration
Diffstat (limited to 'db/normalized/orders.js')
-rw-r--r--db/normalized/orders.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/db/normalized/orders.js b/db/normalized/orders.js
index 8d8418b6..06e83db1 100644
--- a/db/normalized/orders.js
+++ b/db/normalized/orders.js
@@ -1,4 +1,4 @@
-exports.up = function(knex) {
+export const up = function(knex) {
return knex.schema.createTable('orders', function(t) {
t.increments('id').unsigned().primary();
@@ -19,12 +19,11 @@ exports.up = function(knex) {
t.timestamps();
})
-}
-
+};
// Bid / Accepted ... separate into Bid (credit + debit), Accepted (credit + debit)
-exports.down = function(knex) {
+export const down = function(knex) {
return knex.schema.dropTable('orders');
};