Compare commits

..

3 Commits

Author SHA1 Message Date
lorenz.stechauner 4dc8e19ed8 Tests: Update dependencies
Test / Run tests (push) Successful in 2m2s
2026-07-09 00:05:58 +02:00
lorenz.stechauner 34556e32dc Elwig: Update dependencies 2026-07-09 00:05:58 +02:00
lorenz.stechauner e397c9d73d [#20] MemberAdminWindow: Add MemberBusinessSharesAdminWindow to manage member shares 2026-07-09 00:05:47 +02:00
+2 -2
View File
@@ -32,7 +32,7 @@ CREATE TABLE member_history_new (
reason TEXT NOT NULL CHECK (reason REGEXP '^[a-z_]+$'),
source TEXT NOT NULL CHECK (source REGEXP '^[a-z_]+$'),
shares INTEGER NOT NULL,
shares INTEGER NOT NULL CHECK (shares > 0),
signed INTEGER NOT NULL CHECK (signed IN (TRUE, FALSE)) DEFAULT FALSE,
value_per_share INTEGER DEFAULT NULL,
currency TEXT DEFAULT NULL,
@@ -49,7 +49,7 @@ CREATE TABLE member_history_new (
CONSTRAINT fk_member_history_currency FOREIGN KEY (currency) REFERENCES currency (code)
ON UPDATE CASCADE
ON DELETE RESTRICT,
CONSTRAINT c_member_history CHECK (shares > 0 AND (from_mgnr IS NOT NULL OR to_mgnr IS NOT NULL) AND
CONSTRAINT c_member_history CHECK ((from_mgnr IS NOT NULL OR to_mgnr IS NOT NULL) AND
((from_mgnr IS NULL AND from_type IS NULL) OR (from_mgnr IS NOT NULL AND from_type IS NOT NULL)) AND
((to_mgnr IS NULL AND to_type IS NULL) OR (to_mgnr IS NOT NULL AND to_type IS NOT NULL)))
) STRICT;