use default db postgres
ci / build (push) Has been cancelled Details

This commit is contained in:
CJ_Clippy 2024-07-30 12:50:30 -08:00
parent ebe65e067d
commit 00530d757e
3 changed files with 4 additions and 4 deletions

View File

@ -200,7 +200,7 @@ cmd_button('postgrest:restore',
)
cmd_button('postgrest:migrate',
argv=[''],
argv=['./scripts/postgrest-migrations.sh'],
resource='postgrest',
icon_name='directions_run',
text='Run migrations',

View File

@ -2,11 +2,11 @@
if [ -z $POSTGRES_PASSWORD ]; then
echo "POSTGRES_PASSWORD was missing in env. Are you executing this script via Tilt? (that is the intended method)"
echo "POSTGRES_PASSWORD was missing in env. In development environment, runing this command via the UI button in Tilt is recommended as it sets the env var for you."
exit 5
fi
kubectl -n futureporn run postgrest-migrations --image=https://gitea.futureporn.net/futureporn/migrations:latest --env PGPASSWORD=${POSTGRES_PASSWORD}
kubectl -n futureporn run postgrest-migrations -i --rm=true --image=gitea.futureporn.net/futureporn/migrations:latest --env=DATABASE_PASSWORD=${POSTGRES_PASSWORD}

View File

@ -20,7 +20,7 @@ async function main() {
// Default: "postgres"
// Used when checking/creating "database-name"
defaultDatabase: "postgrest"
defaultDatabase: "postgres"
}
await migrate(dbConfig, path.join(__dirname, "./migrations/"))