Commit 0a0034c
committed
store: Validate subgraph name exists before restore
When --name is passed to `graphman restore`, check that the subgraph
actually exists in the database before creating the deployment. Without
this check, the deployment would be created but never linked to a name,
leaving it orphaned and hard to clean up.1 parent 95adf51 commit 0a0034c
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
1468 | | - | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1469 | 1480 | | |
1470 | 1481 | | |
1471 | 1482 | | |
1472 | 1483 | | |
1473 | 1484 | | |
1474 | 1485 | | |
1475 | | - | |
| 1486 | + | |
1476 | 1487 | | |
1477 | 1488 | | |
1478 | 1489 | | |
| |||
0 commit comments