Rename wrong migration file index
This commit is contained in:
parent
ecdef92f82
commit
fd31bbb89f
1 changed files with 0 additions and 0 deletions
19
migrations/037-add_compliance_authorizations_table.js
Normal file
19
migrations/037-add_compliance_authorizations_table.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function(next) {
|
||||
const sql =
|
||||
["CREATE TYPE compliance_types as enum ('manual', 'sanctions', 'sanctions_override') ",
|
||||
'CREATE TABLE compliance_authorizations ( ' +
|
||||
'id uuid PRIMARY KEY, ' +
|
||||
'customer_id uuid REFERENCES customers (id), ' +
|
||||
'compliance_type compliance_types NOT NULL,' +
|
||||
'authorized_at timestamptz NOT NULL,' +
|
||||
'authorized_by text REFERENCES user_tokens (token) )' ]
|
||||
|
||||
|
||||
db.multi(sql, next)
|
||||
};
|
||||
|
||||
exports.down = function(next) {
|
||||
next();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue