WIP cleaned up migrations

This commit is contained in:
Josh Harvey 2014-11-24 23:38:14 -05:00
parent 78f8d08d7d
commit fe008a9db6
4 changed files with 57 additions and 57 deletions

View file

@ -25,20 +25,6 @@ exports.up = function(next) {
'created timestamp NOT NULL DEFAULT now() ' +
')',
'CREATE TABLE IF NOT EXISTS transactions ( ' +
'id uuid PRIMARY KEY, ' +
'status text NOT NULL, ' +
'tx_hash text, ' +
'device_fingerprint text, ' +
'to_address text NOT NULL, ' +
'satoshis integer, ' +
'currency_code text, ' +
'fiat decimal, ' +
'error text, ' +
'created timestamp NOT NULL DEFAULT now(), ' +
'completed timestamp ' +
')',
'CREATE TABLE IF NOT EXISTS users ( ' +
'id serial PRIMARY KEY, ' +
'userName text NOT NULL UNIQUE, ' +