chore: use monorepo organization
This commit is contained in:
parent
deaf7d6ecc
commit
a687827f7e
1099 changed files with 8184 additions and 11535 deletions
22
packages/server/migrations/017-user_tokens.js
Normal file
22
packages/server/migrations/017-user_tokens.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
'drop table if exists users',
|
||||
`create table user_tokens (
|
||||
token text PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
created timestamptz NOT NULL default now()
|
||||
)`,
|
||||
`create table one_time_passes (
|
||||
token text PRIMARY KEY,
|
||||
name text NOT NULL,
|
||||
created timestamptz NOT NULL default now()
|
||||
)`
|
||||
]
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue