Skip to content
Snippets Groups Projects
Commit 3881bc32 authored by felmer's avatar felmer
Browse files

SSDM-4725: Bug in migration-159-160.sql fixed.

SVN: 37874
parent a1d807e0
No related branches found
No related tags found
No related merge requests found
UPDATE content_copies SET location_unique_check =
data_id || ',' ||
edms_id || ',' ||
coalesce(path, '') || ',' ||
coalesce(git_commit_hash, '') || ',' ||
coalesce(external_code, '');
CREATE OR REPLACE FUNCTION content_copies_uniqueness_check() CREATE OR REPLACE FUNCTION content_copies_uniqueness_check()
RETURNS trigger AS RETURNS trigger AS
$BODY$ $BODY$
...@@ -18,3 +11,10 @@ BEGIN ...@@ -18,3 +11,10 @@ BEGIN
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql'; LANGUAGE 'plpgsql';
UPDATE content_copies SET location_unique_check =
data_id || ',' ||
edms_id || ',' ||
coalesce(path, '') || ',' ||
coalesce(git_commit_hash, '') || ',' ||
coalesce(external_code, '');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment