Billing: Allow users to add custom member modifiers before VAT
All checks were successful
Test / Run tests (push) Successful in 2m8s

This commit is contained in:
2024-08-13 14:43:12 +02:00
parent f52c11b91e
commit 4d89a17e80
11 changed files with 139 additions and 30 deletions

View File

@ -0,0 +1,13 @@
-- schema version 27 to 28
ALTER TABLE payment_custom ADD COLUMN mod_abs INTEGER DEFAULT NULL;
ALTER TABLE payment_custom ADD COLUMN mod_rel REAL DEFAULT NULL;
ALTER TABLE payment_custom ADD COLUMN mod_comment TEXT DEFAULT NULL;
PRAGMA writable_schema = ON;
UPDATE sqlite_schema SET sql = REPLACE(REPLACE(sql, 'amount INTEGER NOT NULL', 'amount INTEGER DEFAULT NULL'), 'comment TEXT', 'comment TEXT DEFAULT NULL')
WHERE type = 'table' AND name = 'payment_custom';
PRAGMA schema_version = 2701;
PRAGMA writable_schema = OFF;