Skip to content

Commit

Permalink
Fix password
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMalfait committed Nov 13, 2024
1 parent dfda7e9 commit 6e70ce4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ jobs:
postgres:
image: twentycrm/twenty-postgres-spilo
env:
PGUSER_SUPERUSER: postgres
PGPASSWORD_SUPERUSER: postgres
PGUSER_SUPERUSER: twenty
PGPASSWORD_SUPERUSER: twenty
ports:
- 5432:5432
redis:
Expand Down
7 changes: 1 addition & 6 deletions packages/twenty-server/scripts/setup-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ rawDataSource
'create extension "vector (pgvector)"',
);

await performQuery(
`ALTER DATABASE SET default_table_access_method = "heap"`,
`alter database set default_table_access_method = "heap"`,
);

await performQuery(
'CREATE SCHEMA IF NOT EXISTS "public"',
'create schema "public"',
Expand Down Expand Up @@ -63,7 +58,7 @@ rawDataSource
for (const wrapper of supabaseWrappers) {
await performQuery(
`
CREATE FOREIGN DATA WRAPPER "${wrapper.toLowerCase()}_fdw"
CREATE FOREIGN DATA WRAPPER IF NOT EXISTS "${wrapper.toLowerCase()}_fdw"
HANDLER "${camelToSnakeCase(wrapper)}_fdw_handler"
VALIDATOR "${camelToSnakeCase(wrapper)}_fdw_validator";
`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,11 @@ resource "azurerm_container_app" "twenty_db" {
env {
name = "PGUSER_SUPERUSER"
value = "postgres"
value = "twenty"
}
env {
name = "PGPASSWORD_SUPERUSER"
value = "postgres"
value = "twenty"
}
}
Expand Down

0 comments on commit 6e70ce4

Please sign in to comment.