mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:17:09 +00:00
Fix database upgrades 38, 39, 40.
Ensure the changes are applied to the public schema.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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', '
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user