From 5b1ffe39b7bda8f5d5c89a753645645947f771a7 Mon Sep 17 00:00:00 2001 From: William Woodson Date: Sun, 21 Feb 2016 13:20:56 -0600 Subject: [PATCH] Fixed issue with smtp table migration from 0.1.2 db --- db/migrations/20160221001538_0.1.2_store-smtp-settings.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql b/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql index 33bc42e5..1670dce8 100644 --- a/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql +++ b/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql @@ -14,8 +14,8 @@ ALTER TABLE smtp RENAME TO smtp_old; CREATE TABLE smtp( id integer primary key autoincrement, user_id bigint, - name varchar(255), interface_type varchar(255), + name varchar(255), host varchar(255), username varchar(255), password varchar(255), @@ -23,8 +23,8 @@ CREATE TABLE smtp( modified_date datetime default CURRENT_TIMESTAMP, ignore_cert_errors BOOLEAN ); -INSERT INTO smtp - SELECT smtp_id AS id,'','SMTP',smtp_id AS id,host,username,'',from_address,'',ignore_cert_errors +INSERT INTO smtp (id,interface_type,name,host,username,from_address,ignore_cert_errors) + SELECT smtp_id,'SMTP',smtp_id,host,username,from_address,ignore_cert_errors FROM smtp_old ; UPDATE smtp