Fix database upgrades 38, 39, 40.

Ensure the changes are applied to the public schema.
This commit is contained in:
D. Berge
2025-08-06 22:50:20 +02:00
parent 9006deb8be
commit 40ad0e7650
3 changed files with 3 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ CREATE OR REPLACE PROCEDURE pg_temp.upgrade_database () AS $outer$
BEGIN BEGIN
RAISE NOTICE 'Updating schema %', 'public'; RAISE NOTICE 'Updating schema %', 'public';
SET search_path TO public;
CREATE TABLE IF NOT EXISTS keystore ( CREATE TABLE IF NOT EXISTS keystore (
type TEXT NOT NULL, -- A class of data to be stored type TEXT NOT NULL, -- A class of data to be stored

View File

@@ -41,6 +41,7 @@ CREATE OR REPLACE PROCEDURE pg_temp.upgrade_database () AS $outer$
BEGIN BEGIN
RAISE NOTICE 'Updating schema %', 'public'; RAISE NOTICE 'Updating schema %', 'public';
SET search_path TO public;
INSERT INTO keystore (type, key, data) INSERT INTO keystore (type, key, data)
VALUES ('user', '6f1e7159-4ca0-4ae4-ab4e-89078166cc10', ' VALUES ('user', '6f1e7159-4ca0-4ae4-ab4e-89078166cc10', '

View File

@@ -46,6 +46,7 @@ CREATE OR REPLACE PROCEDURE pg_temp.upgrade_database () AS $outer$
BEGIN BEGIN
RAISE NOTICE 'Updating schema %', 'public'; RAISE NOTICE 'Updating schema %', 'public';
SET search_path TO public;
-- Add "organisations" section to configurations, if not already present -- Add "organisations" section to configurations, if not already present
UPDATE projects UPDATE projects