Skip to content
Snippets Groups Projects
Commit 0c0daad7 authored by Dan Notestein's avatar Dan Notestein
Browse files

Merge branch 'bw_votes_constraint_rename' into 'develop'

Added missed constrain rename.

See merge request !341
parents 5e745ecf 0a7806ad
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!341Added missed constrain rename.
......@@ -277,4 +277,12 @@ where not exists (select null from hive_db_patch_level where patched_to_revision
--- 1847c75702384c7e34c624fc91f24d2ef20df91d latest version of develop included in this migration script.
--- Rename hive_votes_ux1 unique constraint to the hive_votes_voter_id_author_id_permlink_id_uk
DO $$
BEGIN
IF EXISTS (SELECT * FROM pg_constraint WHERE conname='hive_votes_ux1') THEN
RAISE NOTICE 'Attempting to rename hive_votes_ux1 to hive_votes_voter_id_author_id_permlink_id_uk...';
ALTER TABLE hive_votes RENAME CONSTRAINT hive_votes_ux1 to hive_votes_voter_id_author_id_permlink_id_uk;
END IF;
END
$$
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