Skip to content

Commit

Permalink
add description and remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Nov 14, 2023
1 parent c418d36 commit 5ea2a59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions conf/evolutions/default/94.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# --- !Ups
-- Remove the constraint for a distinct virtual challenge (id,name) tuple, and allow users to create virtual challenges with the same name.
ALTER TABLE virtual_challenges DROP CONSTRAINT IF EXISTS CON_VIRTUAL_CHALLENGES_USER_ID_NAME;
DROP INDEX IF EXISTS idx_challenges_parent_id_name;

# -- !Downs
ALTER TABLE virtual_challenges ADD CONSTRAINT CON_VIRTUAL_CHALLENGES_USER_ID_NAME
UNIQUE (owner_id, name);

ALTER TABLE challenges
ALTER COLUMN parent_id DROP NOT NULL;

0 comments on commit 5ea2a59

Please sign in to comment.