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.
2016-08-14 18:29:25 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# TODO on change
|
|
|
|
```
|
|
|
|
ALTER TABLE login ALTER createat TYPE timestamptz;
|
|
|
|
ALTER TABLE login ALTER lastloginat TYPE timestamptz;
|
2016-11-15 20:50:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
BEGIN;
|
2016-11-17 23:15:30 +01:00
|
|
|
insert into host_web_httpaccess (web,login) (select id,unnest(httpaccess) from host_web);
|
2016-11-15 20:50:57 +01:00
|
|
|
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;
|
|
|
|
|
2016-08-14 18:29:25 +02:00
|
|
|
```
|