Fixed issue with smtp table migration from 0.1.2 db

pull/169/head
William Woodson 2016-02-21 13:20:56 -06:00
parent 2dd31c58c3
commit 5b1ffe39b7
1 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@ ALTER TABLE smtp RENAME TO smtp_old;
CREATE TABLE smtp( CREATE TABLE smtp(
id integer primary key autoincrement, id integer primary key autoincrement,
user_id bigint, user_id bigint,
name varchar(255),
interface_type varchar(255), interface_type varchar(255),
name varchar(255),
host varchar(255), host varchar(255),
username varchar(255), username varchar(255),
password varchar(255), password varchar(255),
@ -23,8 +23,8 @@ CREATE TABLE smtp(
modified_date datetime default CURRENT_TIMESTAMP, modified_date datetime default CURRENT_TIMESTAMP,
ignore_cert_errors BOOLEAN ignore_cert_errors BOOLEAN
); );
INSERT INTO smtp INSERT INTO smtp (id,interface_type,name,host,username,from_address,ignore_cert_errors)
SELECT smtp_id AS id,'','SMTP',smtp_id AS id,host,username,'',from_address,'',ignore_cert_errors SELECT smtp_id,'SMTP',smtp_id,host,username,from_address,ignore_cert_errors
FROM smtp_old FROM smtp_old
; ;
UPDATE smtp UPDATE smtp