Updated MySQL scripts to work with new SMTP feature.
Closes #34 Closes #26
This commit is contained in:
@@ -14,19 +14,22 @@ CREATE TABLE IF NOT EXISTS ident_switch
|
||||
varchar(64),
|
||||
password
|
||||
varchar(64),
|
||||
host
|
||||
imap_host
|
||||
varchar(64),
|
||||
port
|
||||
imap_port
|
||||
int
|
||||
CHECK(port > 0 AND port <= 65535),
|
||||
delimiter
|
||||
char(1),
|
||||
label
|
||||
varchar(32),
|
||||
flags
|
||||
int
|
||||
NOT NULL
|
||||
DEFAULT 0,
|
||||
smtp_host
|
||||
varchar(64),
|
||||
smtp_port
|
||||
int
|
||||
CHECK(port > 0 AND port <= 65535),
|
||||
UNIQUE KEY user_id_label (user_id, label),
|
||||
CONSTRAINT fk_user_id FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT fk_identity_id FOREIGN KEY (iid) REFERENCES identities(identity_id) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
|
||||
29
SQL/mysql/2018121800.sql
Normal file
29
SQL/mysql/2018121800.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
ALTER TABLE
|
||||
ident_switch
|
||||
CHANGE
|
||||
host
|
||||
imap_host varchar(64);
|
||||
|
||||
ALTER TABLE
|
||||
ident_switch
|
||||
CHANGE
|
||||
port
|
||||
imap_port int;
|
||||
|
||||
ALTER TABLE
|
||||
ident_switch
|
||||
ADD COLUMN
|
||||
smtp_host
|
||||
varchar(64);
|
||||
|
||||
ALTER TABLE
|
||||
ident_switch
|
||||
ADD COLUMN
|
||||
smtp_port
|
||||
int
|
||||
CHECK(smtp_port > 0 AND smtp_port <= 65535);
|
||||
|
||||
ALTER TABLE
|
||||
ident_switch
|
||||
DROP COLUMN
|
||||
delimiter;
|
||||
Reference in New Issue
Block a user