aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20131110070913-add-settlements.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-07-31 21:22:34 -0700
committerAdam Soltys <[email protected]>2014-07-31 21:22:34 -0700
commit91da53cb29966298074e63f89b60e8401444781d (patch)
treeb9438238ed73d7cd6051467e7642466a986af9ea /migrations/20131110070913-add-settlements.js
parentc10f68e9e30b56c0bbdd84c13130146422cbdfc4 (diff)
downloadcoinos-server-91da53cb29966298074e63f89b60e8401444781d.tar.gz
coinos-server-91da53cb29966298074e63f89b60e8401444781d.zip
Clean up unused files
Diffstat (limited to 'migrations/20131110070913-add-settlements.js')
-rw-r--r--migrations/20131110070913-add-settlements.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/migrations/20131110070913-add-settlements.js b/migrations/20131110070913-add-settlements.js
deleted file mode 100644
index c66ee863..00000000
--- a/migrations/20131110070913-add-settlements.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var dbm = require('db-migrate');
-var async = require('async');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- async.series([
- db.createTable.bind(db, 'settlements', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- settler_id: { type: 'int' },
- merchant_id: { type: 'int' },
- amount: { type: 'decimal' },
- date: { type: 'datetime' },
- method: { type: 'string' }
- }),
- db.runSql.bind(db, 'ALTER TABLE settlements ALTER COLUMN amount type decimal(10,2);')
- ], callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('settlements', callback);
-};