Commit 9aa5863
fix(identity): repair broken Notification migration
PR #14207 removed src/models/notification.js but left
20191107223636-create-viewed-field.js calling models.Notification.update().
On a fresh DB the migration crashes with "Cannot read properties of
undefined (reading 'update')". The break went undetected because
CircleCI was disabled before that PR landed.
Replace the ORM call with a raw UPDATE — the Notifications table itself
is still created by 20191025193919-create-notification.js and was never
dropped, so the migration still has a real table to write to.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 4267519 commit 9aa5863
1 file changed
Lines changed: 6 additions & 6 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments