From 7a8d64833de8873afb92982b3f5bfff59b30c542 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 11:02:06 -0700 Subject: es6 migration --- db/normalized/referrals.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db/normalized/referrals.js') diff --git a/db/normalized/referrals.js b/db/normalized/referrals.js index f09c98f4..7380f2cf 100644 --- a/db/normalized/referrals.js +++ b/db/normalized/referrals.js @@ -1,4 +1,4 @@ -exports.up = function(knex) { +export const up = function(knex) { return knex.schema.createTable('referrals', function(t) { t.increments('id').unsigned().primary(); t.int('user_id').nullable(); @@ -15,6 +15,6 @@ exports.up = function(knex) { }) }; -exports.down = function(knex) { +export const down = function(knex) { return knex.schema.dropTable('referrals'); }; -- cgit v1.2.3