Quote all identifier for MySQL/MariaDB. Closes # 54

This commit is contained in:
Boris Gulay
2020-04-21 21:29:42 +03:00
parent 8176ab9c26
commit f54d9c9618
6 changed files with 62 additions and 62 deletions

View File

@@ -1,29 +1,29 @@
ALTER TABLE
ident_switch
`ident_switch`
CHANGE
host
imap_host varchar(64);
`host`
`imap_host` varchar(64);
ALTER TABLE
ident_switch
`ident_switch`
CHANGE
port
imap_port int;
`port`
`imap_port` int;
ALTER TABLE
ident_switch
`ident_switch`
ADD COLUMN
smtp_host
`smtp_host`
varchar(64);
ALTER TABLE
ident_switch
`ident_switch`
ADD COLUMN
smtp_port
`smtp_port`
int
CHECK(smtp_port > 0 AND smtp_port <= 65535);
CHECK(`smtp_port` > 0 AND `smtp_port` <= 65535);
ALTER TABLE
ident_switch
`ident_switch`
DROP COLUMN
delimiter;
`delimiter`;