Fix migrations for manual override

This commit is contained in:
goga-m 2017-09-27 12:10:48 +03:00 committed by Josh Harvey
parent bb26c0f458
commit 9877fc8ef0
4 changed files with 332 additions and 98 deletions

View file

@ -14,7 +14,7 @@ exports.up = function (next) {
*/
`create type compliance_type as enum
('authorized', 'sms', 'id_card_data', 'id_card_photo', 'sanctions', 'cross_ref', 'front_camera', 'hard_limit')`,
'alter table compliance_authorizations alter column compliance_type type compliance_type using compliance_type::compliance_type',
'alter table compliance_authorizations alter column compliance_type set data type compliance_type using compliance_type::text::compliance_type',
'drop type compliance_types',
"create type verification_type as enum ('verified', 'blocked', 'automatic')",