Commit 59b6d4c
fix(launch): use custom database name when attaching to existing MPG cluster
When attaching to an existing Managed Postgres cluster during launch,
the DATABASE_URL secret now correctly uses the database name provided
by the user in the web customization form, instead of always defaulting
to "fly-db".
Changes:
- webui.go: Check for both "db_name" and "name" keys in form data
- launch_databases.go: Parse and modify connection URI to use custom
database name when attaching to existing cluster
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent e5c3ee0 commit 59b6d4c
2 files changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
401 | 415 | | |
402 | 416 | | |
403 | | - | |
| 417 | + | |
404 | 418 | | |
405 | 419 | | |
406 | 420 | | |
| |||
409 | 423 | | |
410 | 424 | | |
411 | 425 | | |
412 | | - | |
| 426 | + | |
413 | 427 | | |
414 | 428 | | |
415 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
| |||
0 commit comments