aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20131110070913-add-settlements.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-08-08 11:33:43 -0700
committerAdam Soltys <[email protected]>2014-08-08 11:33:43 -0700
commit2cc86381a6f79cd729048b34a72b70562a7b0ace (patch)
treec42dda997719ce544a4dea2bf15937d293ebfd59 /migrations/20131110070913-add-settlements.js
parent3082e274b70a93fdac8a9a63934252ed914fe406 (diff)
parent6d5c3a56067b96bb5d97cca4a80bacbf78395b2c (diff)
downloadcoinos-server-2cc86381a6f79cd729048b34a72b70562a7b0ace.tar.gz
coinos-server-2cc86381a6f79cd729048b34a72b70562a7b0ace.zip
Merge branch 'code_reorg'
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);
-};