-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user search methods by email/name fragment
- Loading branch information
Showing
7 changed files
with
271 additions
and
3 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
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
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
15 changes: 15 additions & 0 deletions
15
...ster/che-core-sql-schema/src/main/resources/che-schema/5.11.0/1__optimize_user_search.sql
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,15 @@ | ||
-- | ||
-- [2012] - [2017] Codenvy, S.A. | ||
-- All Rights Reserved. | ||
-- | ||
-- NOTICE: All information contained herein is, and remains | ||
-- the property of Codenvy S.A. and its suppliers, | ||
-- if any. The intellectual and technical concepts contained | ||
-- herein are proprietary to Codenvy S.A. | ||
-- and its suppliers and may be covered by U.S. and Foreign Patents, | ||
-- patents in process, and are protected by trade secret or copyright law. | ||
-- Dissemination of this information or reproduction of this material | ||
-- is strictly forbidden unless prior written permission is obtained | ||
-- from Codenvy S.A.. | ||
-- | ||
|
17 changes: 17 additions & 0 deletions
17
...re-sql-schema/src/main/resources/che-schema/5.11.0/postgresql/1__optimize_user_search.sql
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,17 @@ | ||
-- | ||
-- [2012] - [2017] Codenvy, S.A. | ||
-- All Rights Reserved. | ||
-- | ||
-- NOTICE: All information contained herein is, and remains | ||
-- the property of Codenvy S.A. and its suppliers, | ||
-- if any. The intellectual and technical concepts contained | ||
-- herein are proprietary to Codenvy S.A. | ||
-- and its suppliers and may be covered by U.S. and Foreign Patents, | ||
-- patents in process, and are protected by trade secret or copyright law. | ||
-- Dissemination of this information or reproduction of this material | ||
-- is strictly forbidden unless prior written permission is obtained | ||
-- from Codenvy S.A.. | ||
-- | ||
CREATE EXTENSION IF NOT EXISTS pg_trgm; | ||
CREATE INDEX index_user_lower_email ON usr USING GIN (LOWER(email) gin_trgm_ops); | ||
CREATE INDEX index_user_lower_name ON usr USING GIN (LOWER(name) gin_trgm_ops); |