mirror of https://github.com/gophish/gophish
Fix MySQL syntax error in maillogs migration.
update autoincrement -> auto_increment add ";" after drop tablepull/921/head
parent
7d67ccc3da
commit
a5c6ffb572
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
-- +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
|
||||||
CREATE TABLE IF NOT EXISTS "mail_logs" (
|
CREATE TABLE IF NOT EXISTS mail_logs (
|
||||||
"id" integer primary key autoincrement,
|
id integer primary key auto_increment,
|
||||||
"campaign_id" integer,
|
campaign_id integer,
|
||||||
"user_id" integer,
|
user_id integer,
|
||||||
"send_date" datetime,
|
send_date datetime,
|
||||||
"send_attempt" integer,
|
send_attempt integer,
|
||||||
"r_id" varchar(255),
|
r_id varchar(255),
|
||||||
"processing" boolean);
|
processing boolean);
|
||||||
|
|
||||||
-- +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
|
||||||
DROP TABLE "mail_logs"
|
DROP TABLE mail_logs;
|
||||||
|
|
Loading…
Reference in New Issue