mirror of https://github.com/gophish/gophish
Adding a Missed SQL Migration (#1330)
* Missed one migration when adding quotes to table names. Related to #1325pull/1334/head
parent
ba967a7244
commit
af293da9f5
|
@ -1,9 +1,9 @@
|
||||||
|
|
||||||
-- +goose Up
|
-- +goose Up
|
||||||
-- SQL in section 'Up' is executed when this migration is applied
|
-- SQL in section 'Up' is executed when this migration is applied
|
||||||
ALTER TABLE campaigns ADD COLUMN launch_date DATETIME;
|
ALTER TABLE `campaigns` ADD COLUMN launch_date DATETIME;
|
||||||
|
|
||||||
UPDATE campaigns SET launch_date = created_date;
|
UPDATE `campaigns` SET launch_date = created_date;
|
||||||
-- +goose Down
|
-- +goose Down
|
||||||
-- SQL section 'Down' is executed when this migration is rolled back
|
-- SQL section 'Down' is executed when this migration is rolled back
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue