add sanctions_logs table
This commit is contained in:
parent
d3b7e7c2ad
commit
5ba164e566
3 changed files with 85 additions and 41 deletions
20
migrations/1525671972351-add_sanctions_logs.js
Normal file
20
migrations/1525671972351-add_sanctions_logs.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
const sql =
|
||||
[`create table sanctions_logs (
|
||||
id uuid PRIMARY KEY,
|
||||
device_id text not null,
|
||||
sanctioned_id text not null,
|
||||
sanctioned_alias_id text,
|
||||
sanctioned_alias_full_name text not null,
|
||||
customer_id uuid not null references customers,
|
||||
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