mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
We need to have both a 'timeout' field and a 'start' field, since the
counter gets reset (potentially).
This commit is contained in:
parent
ef52ef8a22
commit
3195983c01
@ -11,7 +11,8 @@ CREATE TABLE locks (
|
||||
scope TEXT,
|
||||
depth INT,
|
||||
owner INT REFERENCES usr(user_no),
|
||||
timeout TIMESTAMP
|
||||
timeout INTERVAL,
|
||||
start TIMESTAMP DEFAULT current_timestamp
|
||||
);
|
||||
|
||||
CREATE INDEX locks_dav_name_idx ON locks(dav_name);
|
||||
|
||||
@ -112,7 +112,8 @@ CREATE TABLE locks (
|
||||
scope TEXT,
|
||||
depth INT,
|
||||
owner INT REFERENCES usr(user_no),
|
||||
timeout TIMESTAMP
|
||||
timeout INTERVAL,
|
||||
start TIMESTAMP DEFAULT current_timestamp
|
||||
);
|
||||
|
||||
CREATE INDEX locks_dav_name_idx ON locks(dav_name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user