api,db: add page attributes and thread locking
This commit is contained in:
committed by
Adhityaa Chandrasekar
parent
0a03a2c6fc
commit
299649cea2
9
db/20180922181651-page-attributes.sql
Normal file
9
db/20180922181651-page-attributes.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Introduces page attributes
|
||||
|
||||
CREATE TABLE IF NOT EXISTS pages (
|
||||
domain TEXT NOT NULL ,
|
||||
path TEXT NOT NULL ,
|
||||
isLocked BOOLEAN NOT NULL DEFAULT false
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX pagesUniqueIndex ON pages(domain, path);
|
Reference in New Issue
Block a user