diff --git a/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql b/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql index 1670dce8..3e85cbaf 100644 --- a/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql +++ b/db/migrations/20160221001538_0.1.2_store-smtp-settings.sql @@ -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 )