Update 20160221001538_0.1.2_store-smtp-settings.sql

Makes more sense to use campaigns.id in this select
pull/169/head
William Woodson 2016-02-22 20:11:02 -06:00
parent a2ee229848
commit 3e69a4f4e8
1 changed files with 1 additions and 1 deletions

View File

@ -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
)