Fix db init

This commit is contained in:
KennyTV 2020-09-28 11:42:03 +02:00 committed by Nassim
parent 040b6ad01c
commit a55ca6ca1c
3 changed files with 4 additions and 3 deletions

View File

@ -4,8 +4,8 @@ services:
db:
build: ./db
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: 'changeme'
POSTGRES_USER: hangar
POSTGRES_PASSWORD: 'hangar'
POSTGRES_DB: hangar
ports:
- "5432:5432"

View File

@ -4,6 +4,7 @@ services:
db:
build: ./db
environment:
POSTGRES_MULTIPLE_DATABASES: hangar,hangarauth
POSTGRES_USER: root
POSTGRES_PASSWORD: 'changeme'
POSTGRES_DB: hangar

View File

@ -952,7 +952,7 @@ SELECT p.id,
LIMIT 5)) AS promoted_versions,
((setweight((to_tsvector('english'::regconfig, p.name::text) ||
to_tsvector('english'::regconfig, regexp_replace(p.name::text, '([a-z])([A-Z]+)'::text,
'\1_\2'::text, 'g'::text)))) ||
'\1_\2'::text, 'g'::text))), 'A'::"char") ||
setweight(to_tsvector('english'::regconfig, p.description::text), 'B'::"char")) ||
setweight(to_tsvector('english'::regconfig, array_to_string(p.keywords, ' '::text)), 'C'::"char")) || setweight(
to_tsvector('english'::regconfig, p.owner_name::text) || to_tsvector('english'::regconfig,