aboutsummaryrefslogtreecommitdiffstats
path: root/migrations
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
parentc10f68e9e30b56c0bbdd84c13130146422cbdfc4 (diff)
downloadcoinos-server-91da53cb29966298074e63f89b60e8401444781d.tar.gz
coinos-server-91da53cb29966298074e63f89b60e8401444781d.zip
Clean up unused files
Diffstat (limited to 'migrations')
-rw-r--r--migrations/20131110050923-add-users.js15
-rw-r--r--migrations/20131110070704-add-merchants.js18
-rw-r--r--migrations/20131110070755-add-addresses.js14
-rw-r--r--migrations/20131110070850-add-orders.js23
-rw-r--r--migrations/20131110070913-add-settlements.js21
-rw-r--r--migrations/20131110233123-add-exchanges.js14
-rw-r--r--migrations/20131110233243-add-settlers.js18
-rw-r--r--migrations/20131110234112-add-exchanges_settlers.js14
-rw-r--r--migrations/20131110235240-add-methods.js13
-rw-r--r--migrations/20131110235504-add-methods_settlers.js13
-rw-r--r--migrations/20131114144958-add-merchants_settlers.js15
11 files changed, 0 insertions, 178 deletions
diff --git a/migrations/20131110050923-add-users.js b/migrations/20131110050923-add-users.js
deleted file mode 100644
index f22dabc2..00000000
--- a/migrations/20131110050923-add-users.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('users', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- username: { type: 'string' },
- password: { type: 'string' },
- last_login: { type: 'datetime' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('users', callback);
-};
diff --git a/migrations/20131110070704-add-merchants.js b/migrations/20131110070704-add-merchants.js
deleted file mode 100644
index 15d0515c..00000000
--- a/migrations/20131110070704-add-merchants.js
+++ /dev/null
@@ -1,18 +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, 'merchants', {
- user_id: { type: 'int', primaryKey: true },
- formula: { type: 'string' },
- limit: { type: 'decimal' }
- }),
- db.runSql.bind(db, 'ALTER TABLE merchants ALTER COLUMN "limit" type decimal(10,2);')
- ], callback);
-
-};
-
-exports.down = function(db, callback) {
- db.dropTable('merchants', callback);
-};
diff --git a/migrations/20131110070755-add-addresses.js b/migrations/20131110070755-add-addresses.js
deleted file mode 100644
index 4415d327..00000000
--- a/migrations/20131110070755-add-addresses.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('addresses', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- merchant_id: { type: 'int' },
- address: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('addresses', callback);
-};
diff --git a/migrations/20131110070850-add-orders.js b/migrations/20131110070850-add-orders.js
deleted file mode 100644
index e6f94246..00000000
--- a/migrations/20131110070850-add-orders.js
+++ /dev/null
@@ -1,23 +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, 'orders', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- merchant_id: { type: 'int' },
- amount: { type: 'decimal' },
- rate: { type: 'decimal' },
- status: { type: 'int' },
- creation_time: { type: 'datetime' },
- expiration_time: { type: 'datetime' }
- }),
- db.runSql.bind(db, 'ALTER TABLE orders ALTER COLUMN amount type decimal(10,2);'),
- db.runSql.bind(db, 'ALTER TABLE orders ALTER COLUMN rate type decimal(10,2);')
- ], callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('orders', callback);
-};
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);
-};
diff --git a/migrations/20131110233123-add-exchanges.js b/migrations/20131110233123-add-exchanges.js
deleted file mode 100644
index a7e824c3..00000000
--- a/migrations/20131110233123-add-exchanges.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('exchanges', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- name: { type: 'string' },
- url: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('exchanges', callback);
-};
diff --git a/migrations/20131110233243-add-settlers.js b/migrations/20131110233243-add-settlers.js
deleted file mode 100644
index 97575bce..00000000
--- a/migrations/20131110233243-add-settlers.js
+++ /dev/null
@@ -1,18 +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, 'settlers', {
- user_id: { type: 'int', primaryKey: true },
- formula: { type: 'string' },
- reserve: { type: 'decimal' }
- }),
- db.runSql.bind(db, 'ALTER TABLE settlers ALTER COLUMN reserve type decimal(10,2);')
- ], callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('settlers', callback);
-};
diff --git a/migrations/20131110234112-add-exchanges_settlers.js b/migrations/20131110234112-add-exchanges_settlers.js
deleted file mode 100644
index 31ec74b0..00000000
--- a/migrations/20131110234112-add-exchanges_settlers.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('exchanges_settlers', {
- user_id: { type: 'int' },
- exchange_id: { type: 'int' },
- api_key: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('exchanges_settlers');
-};
diff --git a/migrations/20131110235240-add-methods.js b/migrations/20131110235240-add-methods.js
deleted file mode 100644
index 80289812..00000000
--- a/migrations/20131110235240-add-methods.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('methods', {
- id: { type: 'int', primaryKey: true, autoIncrement: true },
- name: { type: 'string' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('methods');
-};
diff --git a/migrations/20131110235504-add-methods_settlers.js b/migrations/20131110235504-add-methods_settlers.js
deleted file mode 100644
index 409b80e3..00000000
--- a/migrations/20131110235504-add-methods_settlers.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('methods_settlers', {
- method_id: { type: 'int' },
- settler_id: { type: 'int' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('methods_settlers', callback);
-};
diff --git a/migrations/20131114144958-add-merchants_settlers.js b/migrations/20131114144958-add-merchants_settlers.js
deleted file mode 100644
index 28e8b136..00000000
--- a/migrations/20131114144958-add-merchants_settlers.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var dbm = require('db-migrate');
-var type = dbm.dataType;
-
-exports.up = function(db, callback) {
- db.createTable('merchants_settlers', {
- merchant_id: { type: 'int' },
- settler_id: { type: 'int' },
- schedule: { type: 'int' },
- method_id: { type: 'int' }
- }, callback);
-};
-
-exports.down = function(db, callback) {
- db.dropTable('merchants_settlers', callback);
-};