Skip to content

Commit

Permalink
Fix migration for challenge shortening (#10094)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Oct 16, 2024
1 parent 2b0c76c commit 4732864
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
BEGIN;

UPDATE challenges SET challenge_id = 'p' WHERE challenge_id = 'profile-completion';
UPDATE challenges SET challenge_id = 'l' WHERE challenge_id = 'listen-streak';
UPDATE challenges SET challenge_id = 'u' WHERE challenge_id = 'track-upload';
UPDATE challenges SET challenge_id = 'r' WHERE challenge_id = 'referrals';
UPDATE challenges SET challenge_id = 'rv' WHERE challenge_id = 'ref-v';
UPDATE challenges SET challenge_id = 'rd' WHERE challenge_id = 'referred';
UPDATE challenges SET challenge_id = 'v' WHERE challenge_id = 'connect-verified';
UPDATE challenges SET challenge_id = 'm' WHERE challenge_id = 'mobile-install';
UPDATE challenges SET challenge_id = 'ft' WHERE challenge_id = 'send-first-tip';
UPDATE challenges SET challenge_id = 'fp' WHERE challenge_id = 'first-playlist';

UPDATE user_challenges SET challenge_id = 'p' WHERE challenge_id = 'profile-completion';
UPDATE user_challenges SET challenge_id = 'l' WHERE challenge_id = 'listen-streak';
UPDATE user_challenges SET challenge_id = 'u' WHERE challenge_id = 'track-upload';
Expand Down

0 comments on commit 4732864

Please sign in to comment.