SQLite script updates for new SMTP feature.

This commit is contained in:
Boris Gulay
2019-01-10 23:55:33 +03:00
parent 34fd9ca6f6
commit f164ccfd05
2 changed files with 35 additions and 10 deletions

View File

@@ -16,23 +16,23 @@ CREATE TABLE ident_switch
varchar(64),
password
varchar(64),
host
imap_host
varchar(64),
port
imap_port
integer
CHECK(port > 0 AND port <= 65535),
delimiter
char(1),
CHECK(imap_port > 0 AND imap_port <= 65535),
label
varchar(32),
flags
integer
NOT NULL
DEFAULT(0),
smtp_host
varchar(64),
smtp_port
integer
CHECK(smtp_port > 0 AND smtp_port <= 65535),
UNIQUE (user_id, label)
);
CREATE INDEX IX_ident_switch_user_id
ON
ident_switch(user_id);
CREATE INDEX IX_ident_switch_user_id ON ident_switch(user_id);
CREATE INDEX IX_ident_switch_iid on ident_switch(iid);

25
SQL/sqlite/2018121800.sql Normal file
View File

@@ -0,0 +1,25 @@
ALTER TABLE
ident_switch
RENAME COLUMN
host
TO
imap_host;
ALTER TABLE
ident_switch
RENAME COLUMN
port
TO
imap_port;
ALTER TABLE
ident_switch
ADD COLUMN
smtp_host
varchar(64);
ALTER TABLE
ident_switch
ADD COLUMN
smtp_port
int;