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
|
|
@ -3,12 +3,12 @@ var db = require('./db')
|
|||
exports.up = function (next) {
|
||||
var sql = [
|
||||
'drop table if exists users',
|
||||
`create table user_tokens (
|
||||
`create table if not exists user_tokens (
|
||||
token text PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
created timestamptz NOT NULL default now()
|
||||
)`,
|
||||
`create table one_time_passes (
|
||||
`create table if not exists one_time_passes (
|
||||
token text PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
created timestamptz NOT NULL default now()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue