mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 13:44:03 +00:00
feat(db): add rent_payment_destinations column and multi-schema support
- Add migration 0020 for rent_payment_destinations jsonb column - Add DB_SCHEMA env var support for multi-schema deployments - Create custom migrate.ts script with proper search_path handling - Update drizzle.config.ts and client.ts to use DB_SCHEMA - Add db_schema variable to Terraform with dev=test/prod=public defaults - Update CD workflow to set DB_SCHEMA based on branch
This commit is contained in:
@@ -3,9 +3,8 @@ import { $ } from 'bun'
|
||||
const PROJECT_ID = 'gen-lang-client-0200379851'
|
||||
|
||||
async function secretExists(name: string): Promise<boolean> {
|
||||
const result =
|
||||
(await $`gcloud secrets describe ${name} --project=${PROJECT_ID}`.quiet().exitCode) === 0
|
||||
return result
|
||||
const result = await $`gcloud secrets describe ${name} --project=${PROJECT_ID}`.quiet().nothrow()
|
||||
return result.exitCode === 0
|
||||
}
|
||||
|
||||
async function createSecret(name: string, value: string) {
|
||||
|
||||
Reference in New Issue
Block a user