21 lines
516 B
Markdown
21 lines
516 B
Markdown
#
|
|
|
|
# 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;
|
|
|
|
```
|