[#34] Billing: Collapse data more compactly

This commit is contained in:
2024-02-20 23:14:00 +01:00
parent 56fdf62c5c
commit 9fec79ef8c
4 changed files with 30 additions and 16 deletions

View File

@ -76,7 +76,7 @@ GROUP BY b.year, b.mgnr, b.sortid
ORDER BY year, mgnr, bucket;
PRAGMA schema_version = 1701;
PRAGMA writable_schame = OFF;
PRAGMA writable_schema = OFF;
----------------------------------------------------------------
@ -89,4 +89,4 @@ DELETE FROM area_commitment_type WHERE attrid = 'B';
UPDATE delivery_part SET cultid = 'B', attrid = NULL WHERE attrid = 'B';
DELETE FROM wine_attribute WHERE attrid = 'B';
UPDATE payment_variant SET data = REPLACE(REPLACE(data, '/B', '/-B'), '"/-B"', '"-B"');
UPDATE payment_variant SET data = REPLACE(REPLACE(REPLACE(data, '/B', '-B'), '/"', '"'), '/-', '-');