gophish/db/db_sqlite3/migrations/20231210085739_add_campaign...

11 lines
341 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS `campaign_groups` (campaign_id bigint,group_id bigint );
CREATE UNIQUE INDEX IF NOT EXISTS uniqueCampaignIdGroupId ON campaign_groups (campaign_id, group_id);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE `campaign_groups`;
-- +goose StatementEnd