From 09d41b29d6418fb16eda1c17989c9cc913100662 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sat, 6 Feb 2016 19:30:33 -0600 Subject: [PATCH] Removed last of the node-based db_migrate code. --- .../main/db/20151209054632-initial-schema.js | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 service/src/main/db/20151209054632-initial-schema.js diff --git a/service/src/main/db/20151209054632-initial-schema.js b/service/src/main/db/20151209054632-initial-schema.js deleted file mode 100644 index b2d3b31..0000000 --- a/service/src/main/db/20151209054632-initial-schema.js +++ /dev/null @@ -1,30 +0,0 @@ -var dbm = global.dbm || require('db-migrate'); -var type = dbm.dataType; -var fs = require('fs'); -var path = require('path'); - -exports.up = function(db, callback) { - var filePath = path.join(__dirname + '/sqls/20151209054632-initial-schema-up.sql'); - fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ - if (err) return callback(err); - console.log('received data: ' + data); - - db.runSql(data, function(err) { - if (err) return callback(err); - callback(); - }); - }); -}; - -exports.down = function(db, callback) { - var filePath = path.join(__dirname + '/sqls/20151209054632-initial-schema-down.sql'); - fs.readFile(filePath, {encoding: 'utf-8'}, function(err,data){ - if (err) return callback(err); - console.log('received data: ' + data); - - db.runSql(data, function(err) { - if (err) return callback(err); - callback(); - }); - }); -};