From 9e392faa4d02e77cb468744661f1b85c2e558064 Mon Sep 17 00:00:00 2001 From: Rod Wright Date: Thu, 12 Feb 2026 20:40:56 -0500 Subject: [PATCH] restored the flagmap and reflinks table creations that somehow got deleted --- database-update.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/database-update.sql b/database-update.sql index ef76257..c96da54 100644 --- a/database-update.sql +++ b/database-update.sql @@ -59,4 +59,24 @@ UPDATE configs SET confvalue="5.2.5" WHERE confname="ol_version"; -- ---------- version 5.3.0 ------------- -- Update version number UPDATE configs SET confvalue="5.3.0" WHERE confname="ol_version"; + +-- Create the flagmap table +CREATE TABLE IF NOT EXISTS `flagmap` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `flagid` int(11) NOT NULL, + `lognoteid` int(11) DEFAULT NULL, + `maintformid` int(11) DEFAULT NULL, + `notetemplateid` int(11) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- Create the reflinks table +CREATE TABLE IF NOT EXISTS `reflinks` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `noteid` int(11) DEFAULT NULL, + `templateid` int(11) DEFAULT NULL, + `target` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + -- --------------------------------------