diff --git a/db_scripts/diff/13832.up b/db_scripts/diff/13832.up new file mode 100644 index 00000000..44fdf2a8 --- /dev/null +++ b/db_scripts/diff/13832.up @@ -0,0 +1,10 @@ +USE billing; +SET AUTOCOMMIT=0; + +INSERT INTO contacts VALUES(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, now(), now(), NULL); + +SELECT LAST_INSERT_ID() INTO @contact_id; + +UPDATE contracts c, resellers r SET c.contact_id = @contact_id WHERE c.id = r.contract_id and c.contact_id IS NULL; + +COMMIT;