Repository navigation
Commit fa95976
authored
chore: replace deprecated lazy='noload' in SQL storage models (#2274)
SQLAlchemy 2.1 deprecates the `noload` loader strategy, so the four
relationships in the SQL storage models raised `SADeprecationWarning`
for users on 2.1. They now use `lazy='raise', passive_deletes=True`.
Nothing reads these relationships, and the SQL clients delete rows with
Core `delete()` statements, relying on the FK `ondelete='CASCADE'`. The
SQL tests pass on SQLAlchemy 2.1.3 with the deprecation warning turned
into an error, and on 2.0.54.
Closes: #2272
*✍️ Drafted by Claude Code*1 parent 87561ee commit fa95976
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments