-- Deploy gaia:pay_20170124_record_business_partner from mysql

BEGIN;
ALTER TABLE `pay_servicesnapshot`
ADD COLUMN `business_partener_at_paid_id` integer,
ADD COLUMN `business_partener_at_validate_id` integer;

ALTER TABLE `pay_servicesnapshot` ADD CONSTRAINT `business_partener_at_paid_id_refs_id_e78976dc` FOREIGN KEY (`business_partener_at_paid_id`) REFERENCES `auth_user` (`id`);
ALTER TABLE `pay_servicesnapshot` ADD CONSTRAINT `business_partener_at_validate_id_refs_id_e78976dc` FOREIGN KEY (`business_partener_at_validate_id`) REFERENCES `auth_user` (`id`);

COMMIT;
