sum7/warehost
sum7
/
warehost
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost/README.md

516 B

TODO on change

ALTER TABLE login ALTER createat TYPE timestamptz;
ALTER TABLE login ALTER lastloginat TYPE timestamptz;


BEGIN;
insert into host_web_httpaccess (web,login) (select id,unnest(httpaccess) from host_web);
ALTER TABLE host_web DROP httpaccess;

insert into host_web_ftpaccess (web,login) (select id,unnest(ftp) from host_web);
ALTER TABLE host_web DROP ftp;

insert into host_mail_forward (mail,"to") (select id,unnest(forward) from host_mail);
ALTER TABLE host_mail DROP forward;
COMMIT;