(c *gin.Context)
| 801 | if err != nil { |
| 802 | return nil, orgExists, err |
| 803 | } |
| 804 | return stored, orgExists, nil |
| 805 | } |
| 806 | |
| 807 | func managedWarehouseUpsertColumns() []string { |
| 808 | return []string{ |
| 809 | "image", |
| 810 | // GORM's default naming strategy splits CamelCase on every |
| 811 | // uppercase-after-lowercase boundary, so `DuckLakeVersion` lands as |
| 812 | // `duck_lake_version` in Postgres — NOT `ducklake_version`. The JSON |
| 813 | // tag is `ducklake_version` but that only controls API I/O, not the |
| 814 | // DB column name. Mismatching this against the actual column makes |
| 815 | // the ON CONFLICT … DO UPDATE clause throw 42703. |
| 816 | "duck_lake_version", |
| 817 | "metadata_proxy_enabled", |
nothing calls this directly
no test coverage detected