Skip to content

Commit

Permalink
Reverted last SQL change
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Dec 13, 2024
1 parent f6caf1d commit da9a816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/upgrade/8.9.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit da9a816

Please sign in to comment.