Migration sql changes (#199)
* safe migration script changes * lamassu migration script fixes
This commit is contained in:
parent
65ce8aee3d
commit
12c834469c
53 changed files with 500 additions and 346 deletions
|
|
@ -2,8 +2,8 @@ var db = require('./db')
|
|||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
"create type trade_type as enum ('buy', 'sell')",
|
||||
`create table trades (
|
||||
db.defineEnum('trade_type', "'buy', 'sell'"),
|
||||
`create table if not exists trades (
|
||||
id serial PRIMARY KEY,
|
||||
type trade_type not null,
|
||||
crypto_code text not null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue