Skip to content

Commit

Permalink
fix sql migration
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Sep 22, 2023
1 parent 160a421 commit 001f45f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ALTER TABLE "salesforce_org" ADD COLUMN "orgLanguageLocaleKey_new" VARCHAR;

-- 2. Update the new column with values from the old column
UPDATE "salesforce_org" SET "orgLanguageLocaleKey_new" = orgLanguageLocaleKey::VARCHAR;
UPDATE "salesforce_org" SET "orgLanguageLocaleKey_new" = "orgLanguageLocaleKey"::VARCHAR;

-- 3. Drop the old column
ALTER TABLE "salesforce_org" DROP COLUMN "orgLanguageLocaleKey";
Expand Down

0 comments on commit 001f45f

Please sign in to comment.