mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Bugfix database definitions / patches after last change.
This commit is contained in:
parent
cf6224374e
commit
0bd0fbca85
@ -280,9 +280,10 @@ CREATE TABLE grants (
|
|||||||
by_collection INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
by_collection INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
||||||
to_principal INT8 REFERENCES principal(principal_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
to_principal INT8 REFERENCES principal(principal_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
||||||
privileges BIT(24),
|
privileges BIT(24),
|
||||||
is_group BOOLEAN,
|
is_group BOOLEAN
|
||||||
PRIMARY KEY (dav_name, to_principal)
|
|
||||||
) WITHOUT OIDS;
|
) WITHOUT OIDS;
|
||||||
|
CREATE UNIQUE INDEX grants_pk1 ON grants(by_principal,to_principal);
|
||||||
|
CREATE UNIQUE INDEX grants_pk2 ON grants(by_collection,to_principal);
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE sync_tokens (
|
CREATE TABLE sync_tokens (
|
||||||
|
|||||||
@ -548,9 +548,10 @@ CREATE TABLE grants (
|
|||||||
by_collection INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
by_collection INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
||||||
to_principal INT8 REFERENCES principal(principal_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
to_principal INT8 REFERENCES principal(principal_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
||||||
privileges BIT(24),
|
privileges BIT(24),
|
||||||
is_group BOOLEAN,
|
is_group BOOLEAN
|
||||||
PRIMARY KEY (dav_name, to_principal)
|
|
||||||
) WITHOUT OIDS;
|
) WITHOUT OIDS;
|
||||||
|
CREATE UNIQUE INDEX grants_pk1 ON grants(by_principal,to_principal);
|
||||||
|
CREATE UNIQUE INDEX grants_pk2 ON grants(by_collection,to_principal);
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO grants ( by_principal, to_principal, privileges, is_group )
|
INSERT INTO grants ( by_principal, to_principal, privileges, is_group )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user