From 8550506517452771cf660054881910b10d59877a Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 14 May 2023 14:05:26 +0200 Subject: [PATCH] migrations: Add 6.sql: Begin outline index --- shared/migrations/6.sql | 2 ++ shared/migrations/migrations.qrc | 1 + 2 files changed, 3 insertions(+) create mode 100644 shared/migrations/6.sql diff --git a/shared/migrations/6.sql b/shared/migrations/6.sql new file mode 100644 index 0000000..d6da623 --- /dev/null +++ b/shared/migrations/6.sql @@ -0,0 +1,2 @@ +CREATE TABLE outline(id INTEGER PRIMARY KEY, fileid INTEGER REFERENCES file (id) ON DELETE CASCADE, text varchar(1024), page integer); +CREATE INDEX outline_fileid ON outline (fileid); diff --git a/shared/migrations/migrations.qrc b/shared/migrations/migrations.qrc index da512c4..52ad0b5 100644 --- a/shared/migrations/migrations.qrc +++ b/shared/migrations/migrations.qrc @@ -5,5 +5,6 @@ 3.sql 4.sql 5.sql + 6.sql