Open platform to collect and prioritize feedback
fix: only try to create extension if it doesn't exists yet (#268)
Guilherme Oenninga6e55cf14079
diff --git a/.travis.yml b/.travis.ymlindex c05798add..c66e9d170 100644--- a/.travis.yml+++ b/.travis.yml@@ -13,8 +13,8 @@ install:- go get github.com/dave/courtney &- nvm use 8.9- psql -U postgres -c 'CREATE DATABASE fider_ci;'+ - psql -U postgres -c "CREATE EXTENSION pg_trgm;" fider_ci- psql -U postgres -c "CREATE USER fider_ci WITH PASSWORD 'fider_ci_pw';"- - psql -U postgres -c "ALTER ROLE fider_ci SUPERUSER;"script:- npm installdiff --git a/migrations/201802231910_add_pg_trgm.up.sql b/migrations/201802231910_add_pg_trgm.up.sqlindex b2b1f68da..59c53695f 100644--- a/migrations/201802231910_add_pg_trgm.up.sql+++ b/migrations/201802231910_add_pg_trgm.up.sql@@ -1 +1 @@-CREATE EXTENSION pg_trgm;\ No newline at end of file+CREATE EXTENSION IF NOT EXISTS pg_trgm;\ No newline at end of file