mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
Fix db init
This commit is contained in:
parent
040b6ad01c
commit
a55ca6ca1c
@ -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"
|
||||
|
@ -4,6 +4,7 @@ services:
|
||||
db:
|
||||
build: ./db
|
||||
environment:
|
||||
POSTGRES_MULTIPLE_DATABASES: hangar,hangarauth
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_PASSWORD: 'changeme'
|
||||
POSTGRES_DB: hangar
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user