-- SQL in section 'Up' is executed when this migration is applied
ALTERTABLEcampaignsADDCOLUMNsmtp_idbigint;
UPDATEcampaignsSETsmtp_id=(SELECTsmtp.smtp_idFROMsmtp)WHEREcampaigns.id=(SELECTsmtp.smtp_idFROMsmtp,campaignsWHEREsmtp.campaign_id=campaigns.id);-- sure hope the current smtp table works like I think it does