api,db: add page attributes and thread locking

This commit is contained in:
Adhityaa authored and Adhityaa Chandrasekar committed 2018-09-23 00:26:37 -04:00
1 parent 0a03a2c6fc
commit 299649cea2
16 files changed
+427 -4

No files matched your search

+9
View 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);