From da9a816fdc835bc651f4e5b83eb1447bad3afe6c Mon Sep 17 00:00:00 2001 From: Alexander Watzinger Date: Fri, 13 Dec 2024 16:46:59 +0100 Subject: [PATCH] Reverted last SQL change --- install/upgrade/8.9.0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/upgrade/8.9.0.sql b/install/upgrade/8.9.0.sql index 53ed98364..ddbd1f5f1 100644 --- a/install/upgrade/8.9.0.sql +++ b/install/upgrade/8.9.0.sql @@ -7,8 +7,8 @@ UPDATE web.settings SET value = '8.9.0' WHERE name = 'database_version'; -- Sync image annotation fields to text annotation fields ALTER TABLE web.annotation_image SET SCHEMA model; -ALTER TABLE model.annotation_image ALTER COLUMN annotation DROP NOT NULL; ALTER TABLE model.annotation_image RENAME COLUMN annotation TO text; +ALTER TABLE model.annotation_image ALTER COLUMN text DROP NOT NULL; ALTER TABLE model.annotation_image DROP COLUMN user_id; ALTER TABLE model.annotation_image ADD COLUMN modified timestamp without time zone; CREATE TRIGGER update_modified BEFORE UPDATE ON model.annotation_image FOR EACH ROW EXECUTE FUNCTION model.update_modified();