- exec: su postgres -c 'psql discourse_development -c "alter schema public owner to discourse;"'
- exec: su postgres -c 'psql discourse_development -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql discourse_development -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql discourse_development -c "create extension if not exists vector;"'
- exec: su postgres -c 'createdb discourse_test' || true
- exec: su postgres -c 'psql discourse_test -c "grant all privileges on database discourse_test to discourse;"' || true
- exec: su postgres -c 'psql discourse_test -c "alter schema public owner to discourse;"'
- exec: su postgres -c 'psql discourse_test -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql discourse_test -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql discourse_test -c "create extension if not exists vector;"'
- exec: su postgres -c 'createdb discourse_test_multisite' || true
- exec: su postgres -c 'psql discourse_test_multisite -c "grant all privileges on database discourse_test_multisite to discourse;"' || true
- exec: su postgres -c 'psql discourse_test_multisite -c "alter schema public owner to discourse;"'
- exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists vector;"'
- exec: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1
- exec: chown -R discourse /tmp/discourse
- exec: su postgres -c 'psql $db_name -c "alter schema public owner to $db_user;"'
- exec: su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql template1 -c "create extension if not exists vector;"'
- exec: su postgres -c 'psql $db_name -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql $db_name -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql $db_name -c "create extension if not exists vector;"'
- exec:
stdin: |
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = '$db_name' AND encoding = pg_char_to_encoding('SQL_ASCII');
- exec: su postgres -c 'psql $db_name -c "alter schema public owner to $db_user;"'
- exec: su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql template1 -c "create extension if not exists vector;"'
- exec: su postgres -c 'psql $db_name -c "create extension if not exists hstore;"'
- exec: su postgres -c 'psql $db_name -c "create extension if not exists pg_trgm;"'
+ - exec: su postgres -c 'psql $db_name -c "create extension if not exists vector;"'
- exec:
stdin: |
update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = '$db_name' AND encoding = pg_char_to_encoding('SQL_ASCII');