mirror of https://github.com/gophish/gophish
Update 20160221001538_0.1.2_store-smtp-settings.sql
Makes more sense to use campaigns.id in this selectpull/169/head
parent
a2ee229848
commit
3e69a4f4e8
|
@ -5,7 +5,7 @@ ALTER TABLE campaigns ADD COLUMN smtp_id bigint;
|
|||
UPDATE campaigns
|
||||
SET smtp_id = (SELECT smtp.smtp_id FROM smtp)
|
||||
WHERE campaigns.id = (
|
||||
SELECT smtp.smtp_id
|
||||
SELECT campaigns.id
|
||||
FROM smtp,campaigns
|
||||
WHERE smtp.campaign_id=campaigns.id
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue