fix: rebase issues and code style

This commit is contained in:
Rafael Taranto 2019-11-12 15:04:32 +00:00
parent 703c5d7c91
commit c100c11a2f
20 changed files with 28 additions and 419 deletions

View file

@ -2,14 +2,6 @@ const db = require('./db')
exports.up = function (next) {
var sqls = [
'create table server_logs ( ' +
'id uuid PRIMARY KEY, ' +
'device_id text, ' +
'log_level text, ' +
'timestamp timestamptz DEFAULT now(), ' +
'message text, ' +
'meta json)',
'CREATE TABLE IF NOT EXISTS user_config ( ' +
'id serial PRIMARY KEY, ' +
'type text NOT NULL, ' +

View file

@ -2,9 +2,18 @@ var db = require('./db')
exports.up = function (next) {
const sql =
[`create table server_support_logs (
id uuid PRIMARY KEY,
timestamp timestamptz not null default now() )`
[
'create table server_logs ( ' +
'id uuid PRIMARY KEY, ' +
'device_id text, ' +
'log_level text, ' +
'timestamp timestamptz DEFAULT now(), ' +
'message text, ' +
'meta json)',
`create table server_support_logs (
id uuid PRIMARY KEY,
timestamp timestamptz not null default now() )`
]
db.multi(sql, next)