lamassu-server/migrations/1509091634946-support_logs.js
2017-12-13 16:31:07 +02:00

17 lines
368 B
JavaScript

var db = require('./db')
exports.up = function (next) {
const sql =
[`create table support_logs (
id uuid PRIMARY KEY,
device_id text,
timestamp timestamptz not null default now() )`,
'alter table logs add column server_timestamp timestamptz not null default now() '
]
db.multi(sql, next)
}
exports.down = function (next) {
next()
}