database: Add mod_abs and mod_rel to payment_custom

This commit is contained in:
2024-08-13 00:29:14 +02:00
parent 1e7c78fe0d
commit 4d3ead0486
2 changed files with 9 additions and 5 deletions

View File

@ -151,11 +151,15 @@ CREATE TABLE payment_member (
-- all values in the table are stored with precision 2! -- all values in the table are stored with precision 2!
CREATE TABLE payment_custom ( CREATE TABLE payment_custom (
year INTEGER NOT NULL, year INTEGER NOT NULL,
mgnr INTEGER NOT NULL, mgnr INTEGER NOT NULL,
amount INTEGER NOT NULL, mod_abs INTEGER DEFAULT NULL,
comment TEXT, mod_rel REAL DEFAULT NULL,
mod_comment TEXT DEFAULT NULL,
amount INTEGER DEFAULT NULL,
comment TEXT DEFAULT NULL,
CONSTRAINT pk_payment_custom PRIMARY KEY (year, mgnr), CONSTRAINT pk_payment_custom PRIMARY KEY (year, mgnr),
CONSTRAINT fk_payment_custom_season FOREIGN KEY (year) REFERENCES season (year) CONSTRAINT fk_payment_custom_season FOREIGN KEY (year) REFERENCES season (year)

View File

@ -1,3 +1,3 @@
-- This value MUST NOT be changed while other connections are open! -- This value MUST NOT be changed while other connections are open!
PRAGMA schema_version = 2700; PRAGMA schema_version = 2800;