aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/debits.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/debits.js
parentb06e117af96a38b163384f6a343f1de7c8996724 (diff)
downloadcoinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.tar.gz
coinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.zip
es6 migration
Diffstat (limited to 'db/normalized/debits.js')
-rw-r--r--db/normalized/debits.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/normalized/debits.js b/db/normalized/debits.js
index 1b65adc6..256853c8 100644
--- a/db/normalized/debits.js
+++ b/db/normalized/debits.js
@@ -1,4 +1,4 @@
-exports.up = function(knex) {
+export const up = function(knex) {
return knex.schema.createTable('debits', function(t) {
t.increments('id').unsigned().primary();
@@ -16,7 +16,7 @@ exports.up = function(knex) {
})
};
-exports.down = function(knex) {
+export const down = function(knex) {
return knex.schema.dropTable('debits');
};
@@ -42,7 +42,7 @@ return knex.schema.dropTable('debits');
// context for path, memo, rate, preimage, address, received, fee, tip, confirmed, redeemcode ?
-const { DataTypes } = require('sequelize');
+import { DataTypes } from 'sequelize';
const attributes = {
id: {