Skip to content

Commit 4dd7dbc

Browse files
committed
Document upgrade query predicates
1 parent dce81cf commit 4dd7dbc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/prepare-db-upgrade.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ extended.rel: reorder input.rel (int id, string name, int parent) id name parent
5858
// should be placed in the upgrade directory. It should avoid using the default
5959
// QLL library, and will run in the context of the *old* dbscheme.
6060
relationname.rel: run relationname.qlo
61+
62+
// Create relationname.rel by running the query predicate 'predicatename' in
63+
// relationname.qlo and writing the query results as a .rel file. This command
64+
// expects the upgrade relation to be a query predicate, which has the advantage
65+
// of allowing multiple upgrade relations to appear in the same .ql file as
66+
// multiple query predicates. The query file should be named relationname.ql and
67+
// should be placed in the upgrade directory. It should avoid using the default
68+
// QLL library, and will run in the context of the *old* dbscheme.
69+
relationname.rel: run relationname.qlo predicatename
6170
```
6271

6372
### Testing your scripts

0 commit comments

Comments
 (0)