fix: sql uppercasing

fix: structural changes to remove async/await flows
fix: invert boolean flow
fix: minor fixes
This commit is contained in:
Sérgio Salgado 2021-06-15 19:45:57 +01:00
parent f987a07e0b
commit 1563aa307b
9 changed files with 172 additions and 126 deletions

View file

@ -4,11 +4,11 @@ exports.up = function (next) {
var sql = [
`ALTER TABLE user_register_tokens ADD COLUMN use_fido BOOLEAN DEFAULT false`,
`CREATE TABLE hardware_credentials (
id UUID PRIMARY KEY,
user_id UUID REFERENCES users(id),
id UUID PRIMARY KEY NOT NULL,
user_id UUID REFERENCES users(id) NOT NULL,
created TIMESTAMPTZ DEFAULT now(),
last_used TIMESTAMPTZ DEFAULT now(),
data JSONB
data JSONB NOT NULL
)`
]