From 0fb0457dbb0957e826f312b1bc218c7b446ee6fe Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Thu, 23 Nov 2023 18:25:03 +0100 Subject: [PATCH] setup: sqlite: Add "parent" refere to "page" --- setup/sqlite.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/sqlite.sql b/setup/sqlite.sql index 56c0b8c..bbd69ad 100644 --- a/setup/sqlite.sql +++ b/setup/sqlite.sql @@ -1,4 +1,4 @@ -CREATE TABLE page(id INTEGER PRIMARY KEY, name varchar(256), title varchar(1024), lastrevision integer, visible integer DEFAULT 1); +CREATE TABLE page(id INTEGER PRIMARY KEY, name varchar(256), title varchar(1024), lastrevision integer, visible integer DEFAULT 1, parent integer REFERENCES page(id)); CREATE TABLE user(id INTEGER PRIMARY KEY,username varchar(64), password blob, salt blob, permissions integer, enabled integer DEFAULT 1); CREATE TABLE session(id INTEGER PRIMARY KEY, csrf_token varchar(32),