database: Add mod_abs and mod_rel to payment_custom
This commit is contained in:
@ -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)
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user