aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrations/20210612203333_schema_diff_merges.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/migrations/20210612203333_schema_diff_merges.js
parentb06e117af96a38b163384f6a343f1de7c8996724 (diff)
downloadcoinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.tar.gz
coinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.zip
es6 migration
Diffstat (limited to 'db/migrations/20210612203333_schema_diff_merges.js')
-rw-r--r--db/migrations/20210612203333_schema_diff_merges.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/db/migrations/20210612203333_schema_diff_merges.js b/db/migrations/20210612203333_schema_diff_merges.js
index a853f449..418105d2 100644
--- a/db/migrations/20210612203333_schema_diff_merges.js
+++ b/db/migrations/20210612203333_schema_diff_merges.js
@@ -1,4 +1,4 @@
-exports.up = function(knex) {
+export const up = function(knex) {
return Promise.all([
knex.schema.dropTableIfExists('reset'),
knex.schema.dropTableIfExists('naughty'),
@@ -21,9 +21,9 @@ exports.up = function(knex) {
knex.raw("ALTER TABLE users MODIFY `subscriptions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL"),
])
-}
+};
-exports.down = async function(knex) {
+export const down = async function(knex) {
return Promise.all([
knex.schema.table("orders", function(t) {
t.integer("a1");
@@ -36,4 +36,4 @@ exports.down = async function(knex) {
t.dropColumn("authyId");
}),
])
-} \ No newline at end of file
+}; \ No newline at end of file