We need to have both a 'timeout' field and a 'start' field, since the

counter gets reset (potentially).
This commit is contained in:
Andrew McMillan 2006-12-03 23:36:52 +13:00
parent ef52ef8a22
commit 3195983c01
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,8 @@ CREATE TABLE locks (
scope TEXT, scope TEXT,
depth INT, depth INT,
owner INT REFERENCES usr(user_no), 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); CREATE INDEX locks_dav_name_idx ON locks(dav_name);

View File

@ -112,7 +112,8 @@ CREATE TABLE locks (
scope TEXT, scope TEXT,
depth INT, depth INT,
owner INT REFERENCES usr(user_no), 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); CREATE INDEX locks_dav_name_idx ON locks(dav_name);