Skip to content

Commit

Permalink
hof/docs: more typography on headings
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Aug 11, 2023
1 parent 63eaad9 commit 4d9a09d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/content/changelogs/v0.6.x/upgrading-0.6.7-to-0.6.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ You now only need one loop to process all model fields,
rather than before where you needed a loop each for `Fields` and `Relations`.
You can still get each separately by filtering the `Fields` on the `Relation` sub-field.

<br>

Before (old way) [schema](https://github.com/hofstadter-io/hof/blob/v0.6.7/schema/dm/dm.cue):
#### Before ([old schema](https://github.com/hofstadter-io/hof/blob/v0.6.7/schema/dm/dm.cue))

```text
#MyModels: dm.#Datamodel & {
Expand Down Expand Up @@ -108,15 +109,17 @@ Before (old way) [schema](https://github.com/hofstadter-io/hof/blob/v0.6.7/schem
}
```

<br>

Changes:
#### Changes

- `dm.#Datamodel` -> `sql.Datamodel`
- `Model.Relations.[name].Reln` -> `Model.Fields.[name].Relation.Type`
- `Model.Relations.[name].Type` -> `Model.Fields.[name].Relation.Other`

<br>

After (new way) [schema](https://github.com/hofstadter-io/hof/blob/v0.6.8/schema/dm/sql/dm.cue):
#### After ([new schema](https://github.com/hofstadter-io/hof/blob/v0.6.8/schema/dm/sql/dm.cue))

```text
MyModels: sql.Datamodel & {
Expand Down

0 comments on commit 4d9a09d

Please sign in to comment.