Archive old migrations (#426)

* Archive old migrations

* Fix invalid placement of migrations
This commit is contained in:
Rikard Bartholf
2024-10-17 11:19:12 +02:00
committed by GitHub
parent 763262c108
commit ddcbd0afb0
500 changed files with 0 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
-- P5-1679
UPDATE contract_customers AS t_upd
SET (
"reseller-companyname",
"reseller-address",
"reseller-zipcode",
"reseller-city",
"reseller-email",
"reseller-phone"
) = (
SELECT
companyname,
address,
zipcode,
city,
email,
phone
FROM contract_customers AS t_sel
WHERE t_sel.contractcustomerid = t_upd.contractcustomerid
)
WHERE
dealerstore
AND "reseller-companyname" IS NULL
AND "reseller-address" IS NULL
AND "reseller-zipcode" IS NULL
AND "reseller-city" IS NULL
AND "reseller-email" IS NULL
AND "reseller-phone" IS NULL
;