Compare commits

..

3 Commits

Author SHA1 Message Date
lorenz.stechauner 7ad5aa90af Tests: Update dependencies
Test / Run tests (push) Successful in 2m11s
2026-07-08 23:32:56 +02:00
lorenz.stechauner f974408011 Elwig: Update dependencies 2026-07-08 23:32:40 +02:00
lorenz.stechauner a33860443b [#20] MemberAdminWindow: Add MemberBusinessSharesAdminWindow to manage member shares
Test / Run tests (push) Successful in 2m40s
2026-07-08 22:04:20 +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 CHECK (shares > 0),
shares INTEGER NOT NULL,
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 ((from_mgnr IS NOT NULL OR to_mgnr IS NOT NULL) AND
CONSTRAINT c_member_history CHECK (shares > 0 AND (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;