Commit d1a14e8
committed
fix(graph): upsert in create_function_graph — reuse existing graph by (store_id, name)
Same pattern as the store lookup above: SELECT existing graph by
(store_id, name) before INSERT. Re-importing a graph with the same
name returns the existing graph_id instead of hitting
idx_platform_function_graphs_unique_name.1 parent b4f6061 commit d1a14e8
1 file changed
Lines changed: 19 additions & 13 deletions
File tree
- pgpm/constructive-compute/deploy/schemas/constructive_compute_public/procedures/platform_create_function_graph
Lines changed: 19 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments