Skip to content

Commit

Permalink
merge branch.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jul 15, 2024
1 parent 51005b8 commit 50b4f38
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
8 changes: 0 additions & 8 deletions sql/branch.sql

This file was deleted.

6 changes: 6 additions & 0 deletions sql/migrations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3482,3 +3482,9 @@ UPDATE app_conf SET value = '"JtqazsotvWZQ1G6ynYhDlHXouQji-qDwwU2WQW7j-kE"' WHER
ALTER TABLE recipient_settings
ALTER COLUMN patron_visibilities DROP NOT NULL,
ADD COLUMN patron_countries text CHECK (patron_countries <> '');

-- migration #177
CREATE INDEX public_name_trgm_idx ON participants
USING GIN (lower(public_name) gin_trgm_ops)
WHERE status = 'active'
AND public_name IS NOT null;
7 changes: 6 additions & 1 deletion sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ COMMENT ON EXTENSION pg_stat_statements IS 'track execution statistics of all SQ

-- database metadata
CREATE TABLE db_meta (key text PRIMARY KEY, value jsonb);
INSERT INTO db_meta (key, value) VALUES ('schema_version', '176'::jsonb);
INSERT INTO db_meta (key, value) VALUES ('schema_version', '177'::jsonb);


-- app configuration
Expand Down Expand Up @@ -100,6 +100,11 @@ CREATE INDEX username_trgm_idx ON participants
WHERE status = 'active'
AND NOT username like '~%';

CREATE INDEX public_name_trgm_idx ON participants
USING GIN (lower(public_name) gin_trgm_ops)
WHERE status = 'active'
AND public_name IS NOT null;

CREATE INDEX participants_join_time_idx ON participants (join_time)
WHERE join_time IS NOT NULL;

Expand Down

0 comments on commit 50b4f38

Please sign in to comment.