diff options
| author | Adam Soltys <[email protected]> | 2022-09-02 11:02:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-02 11:02:06 -0700 |
| commit | 7a8d64833de8873afb92982b3f5bfff59b30c542 (patch) | |
| tree | bc92e20c7d5127d3b6b17f7b8d3190e08579f49e /db/normalized/user_preferences.js | |
| parent | b06e117af96a38b163384f6a343f1de7c8996724 (diff) | |
| download | coinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.tar.gz coinos-server-7a8d64833de8873afb92982b3f5bfff59b30c542.zip | |
es6 migration
Diffstat (limited to 'db/normalized/user_preferences.js')
| -rw-r--r-- | db/normalized/user_preferences.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/normalized/user_preferences.js b/db/normalized/user_preferences.js index 36956dc0..6af69f3f 100644 --- a/db/normalized/user_preferences.js +++ b/db/normalized/user_preferences.js @@ -1,4 +1,4 @@ -exports.up = function(knex) { +export const up = function(knex) { return knex.schema.createTable('user_preferences', function(t) { t.increments('id').unsigned().primary(); t.int('user_id').notNull(); @@ -13,8 +13,8 @@ exports.up = function(knex) { // knex.raw("ALTER TABLE users MODIFY `subscriptions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL") }) -} +}; -exports.down = function(knex) { +export const down = function(knex) { return knex.schema.dropTable('user_preferences'); }; |
