2016-02-28 01:38:54 +00:00
|
|
|
|
|
|
|
-- +goose Up
|
|
|
|
-- SQL in section 'Up' is executed when this migration is applied
|
|
|
|
-- Move the relationship between campaigns and smtp to campaigns
|
2018-12-27 16:23:54 +00:00
|
|
|
ALTER TABLE `campaigns` ADD COLUMN smtp_id bigint;
|
2016-02-28 01:38:54 +00:00
|
|
|
-- Create a new table to store smtp records
|
2018-12-27 16:23:54 +00:00
|
|
|
DROP TABLE `smtp`;
|
|
|
|
CREATE TABLE `smtp`(
|
2016-11-19 16:37:22 +00:00
|
|
|
id integer primary key auto_increment,
|
2016-02-28 01:38:54 +00:00
|
|
|
user_id bigint,
|
|
|
|
interface_type varchar(255),
|
|
|
|
name varchar(255),
|
2019-03-15 01:29:51 +00:00
|
|
|
spoofed_hostname varchar(255),
|
2016-02-28 01:38:54 +00:00
|
|
|
host varchar(255),
|
|
|
|
username varchar(255),
|
|
|
|
password varchar(255),
|
|
|
|
from_address varchar(255),
|
2016-11-19 16:37:22 +00:00
|
|
|
modified_date datetime,
|
2016-02-28 01:38:54 +00:00
|
|
|
ignore_cert_errors BOOLEAN
|
|
|
|
);
|
|
|
|
-- +goose Down
|
|
|
|
-- SQL section 'Down' is executed when this migration is rolled back
|
|
|
|
|