Skip to content

Commit 303f10f

Browse files
authored
Merge branch 'main' into bugfix-57/literal-satype
2 parents 1f0e0ea + 55abec9 commit 303f10f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### Docs
1010

11+
* ✏️ Fix typos in `docs/tutorial/relationship-attributes/cascade-delete-relationships.md`. PR [#1543](https://github.com/fastapi/sqlmodel/pull/1543) by [@YuriiMotov](https://github.com/YuriiMotov).
1112
* 🍱 Update SVG files, a single file per diagram, sans-serif fonts. PR [#1373](https://github.com/fastapi/sqlmodel/pull/1373) by [@tiangolo](https://github.com/tiangolo).
1213
* 📝 Grammar tweak in `docs/tutorial/insert.md`. PR [#1368](https://github.com/fastapi/sqlmodel/pull/1368) by [@brettcannon](https://github.com/brettcannon).
1314
* 📝 Update `docs/tutorial/fastapi/relationships.md`. PR [#1365](https://github.com/fastapi/sqlmodel/pull/1365) by [@Foxerine](https://github.com/Foxerine).

docs/tutorial/relationship-attributes/cascade-delete-relationships.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ For example, **SQLite** doesn't support them by default. They have to be manuall
185185
PRAGMA foreign_keys = ON;
186186
```
187187

188-
So, in general is a good idea to have both `cascade_delete` and `ondelete` configured.
188+
So, in general it's a good idea to have both `cascade_delete` and `ondelete` configured.
189189

190190
/// tip
191191

@@ -203,7 +203,7 @@ Just a note to remember... 🤓
203203
class Hero(SQLModel, table=True):
204204
...
205205

206-
team_id: int Field(foreign_key="team.id", ondelete="CASCADE")
206+
team_id: int = Field(foreign_key="team.id", ondelete="CASCADE")
207207
```
208208

209209
* `cascade_delete` is put on the `Relationship()`. Normally on the **"one"** side in "one-to-many" relationships, the side **without a foreign key**.
@@ -348,7 +348,7 @@ The result would be these tables.
348348

349349
| id | name | secret_name | age | team_id |
350350
| ---- | --------------- | ---------------- | ---- | ------- |
351-
| 1 | Deadpond | Dive WIlson | | 1 |
351+
| 1 | Deadpond | Dive Wilson | | 1 |
352352
| 2 | Rusty-Man | Tommy Sharp | 48 | 2 |
353353
| 3 | Spider-Boy | Pedro Parqueador | | 2 |
354354
| 4 | Black Lion | Trevor Challa | 35 | NULL |

0 commit comments

Comments
 (0)