Commit c573946
fix: remove debug import and fix SQLitePlatform alter sql mutation
- Remove stale `from dumpdie import dd` debug import from MorphTo.py
- Fix compile_alter_sql mutating diff.from_table.added_columns in place
via .pop() and .update(), causing KeyError and wrong column lists when
to_sql() is called more than once (e.g. __aexit__ + test assertion).
Work on dict copies so each call produces correct idempotent output.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d7e8e88 commit c573946
2 files changed
Lines changed: 5 additions & 10 deletions
File tree
- fastapi_startkit/src/fastapi_startkit/masoniteorm
- relationships
- schema/platforms
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 222 | + | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
230 | | - | |
| 228 | + | |
231 | 229 | | |
232 | 230 | | |
233 | 231 | | |
| |||
264 | 262 | | |
265 | 263 | | |
266 | 264 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 265 | + | |
270 | 266 | | |
271 | 267 | | |
272 | 268 | | |
| |||
0 commit comments