Skip to content

Commit

Permalink
Merge pull request #6 from Giveth/revert-5-feat/add-pg_trgm
Browse files Browse the repository at this point in the history
Revert "Feat: add support for pg_trgm"
  • Loading branch information
aminlatifi authored Feb 12, 2024
2 parents 771c0c8 + 17c1dbf commit 62664da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:13
FROM postgres:13.8

RUN apt-get update
RUN apt-get -y install postgresql-13-cron
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Postgres givethio

We needed a postgres docker image with enabled pg_cron and pg_trgm so we wrote and publish this docker image
We needed a postgres docker image with enabled pg_cron so we wrote and publish this docker image
to use it in https://github.com/Giveth/impact-graph

related PR in impact-graph https://github.com/Giveth/impact-graph/pull/658
Expand Down
5 changes: 3 additions & 2 deletions init-db/001-setup-pg_cron.sh → init-db/001-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
# Remove last line "shared_preload_libraries='citus'"
sed -i '$ d' /var/lib/postgresql/data/pgdata/postgresql.conf
cat <<EOT >> /var/lib/postgresql/data/pgdata/postgresql.conf
shared_preload_libraries = 'pg_cron,pg_trgm';
cron.database_name = 'givethio'
shared_preload_libraries='pg_cron'
cron.database_name='givethio'
EOT
# Required to load pg_cron
pg_ctl restart

1 change: 0 additions & 1 deletion init-db/002-setup-pg_trgm.sql

This file was deleted.

0 comments on commit 62664da

Please sign in to comment.