diff options
Diffstat (limited to 'db/normalized/exchanges.js')
| -rw-r--r-- | db/normalized/exchanges.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/normalized/exchanges.js b/db/normalized/exchanges.js index 3fd0a5ca..2f34a394 100644 --- a/db/normalized/exchanges.js +++ b/db/normalized/exchanges.js @@ -1,4 +1,4 @@ -exports.up = function(knex) { +export const up = function(knex) { return knex.schema.createTable('exchanges', function(t) { t.increments('id').unsigned().primary(); @@ -12,7 +12,7 @@ exports.up = function(knex) { }) }; -exports.down = function(knex) { +export const down = function(knex) { return knex.schema.dropTable('exchanges'); }; @@ -38,7 +38,7 @@ return knex.schema.dropTable('exchanges'); // context for path, memo, rate, preimage, address, received, fee, tip, confirmed, redeemcode ? -const { DataTypes } = require('sequelize'); +import { DataTypes } from 'sequelize'; const attributes = { id: { |
