-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from OpenSecretCloud/email-citext
Email citext migration
- Loading branch information
Showing
6 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- Convert users email back to text | ||
ALTER TABLE users ALTER COLUMN email TYPE text; | ||
|
||
-- Drop the citext extension last (after all tables using it are dropped) | ||
DROP EXTENSION IF EXISTS citext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- Enable citext extension for case-insensitive text fields | ||
CREATE EXTENSION IF NOT EXISTS citext; | ||
|
||
-- Modify existing users table to use citext for email | ||
ALTER TABLE users ALTER COLUMN email TYPE citext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"HashAlgorithm": "Sha384 { ... }", | ||
"PCR0": "389d50ca5e4660ee7a55b46af57ea566bd2450487f72843cfdb16d73263186312cfbe0bebd8858ba103d2ae10d631ee4", | ||
"PCR0": "583ac140e0454dd4766a07c147cb6d90d5430d6bc9c1571da19c781dea4027e1c434273caba584440180ca42c2db84d5", | ||
"PCR1": "5039fa3d13b95dded883deed58d2a0ac63bee4f05f16e05eda0dd21e54bcd01f5e700505998b5674616ea8346ce94b29", | ||
"PCR2": "5448c51db5348b8ef34bc9417fb4d29d9d030eae84e88799ac30ebb61be80ec9e991fa3222695149fd76df8b7080ef25" | ||
"PCR2": "9e21041c05247372770686518de99f37923ec6ad8fddecc5fd98e9d7c1c488a0b38d0071546b6164f5049bd2da74ccd0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"HashAlgorithm": "Sha384 { ... }", | ||
"PCR0": "9c674e71f4490859c04a17cc7cb8a7559a2dd389964d985ddf80b44ec95e530e34ec5c556021658851b603afd8f1364f", | ||
"PCR0": "4e242871fecc14933c889908a6a7593de574c2655a47ffa163c5fd7ba41d063152ef441bd555ac7f8569eac4fd7cbc8b", | ||
"PCR1": "5039fa3d13b95dded883deed58d2a0ac63bee4f05f16e05eda0dd21e54bcd01f5e700505998b5674616ea8346ce94b29", | ||
"PCR2": "85a9780ac091886c27646c2bfd9049cac62776c91196bb58237a45d484e6192f1ffec90a019c83823cbce1b80cc5fd3c" | ||
"PCR2": "6fb22e83424524d5e8a0e43b9b314af7e1ed32796b93bb7c1cec99f74800eca209c88185899c294f4f6e4ade5bb87d7e" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters