fix(students): scope status constraint lookup and add it without blocking
Check pg_constraint by conname + conrelid so a same-named CHECK on another table cannot skip creation, add the constraint as NOT VALID and validate separately to avoid a long ACCESS EXCLUSIVE lock at boot. Mark lib/students.js as partially extracted in the migration plan.
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
| **6** | `lib/auth.js`, `lib/api-keys.js` | **НЕ НАЧАТО** | (`1136–1359`, `1218–1360`, admin-часть `5126–5148`) |
|
||||
| **7** | Мелкий CRUD | **НЕ НАЧАТО** | `lib/notes.js`, `lib/bookmarks.js`, `lib/branches.js`, `lib/modules.js`, `lib/bans.js` |
|
||||
| **8** | Средний | **НЕ НАЧАТО** | `lib/shorts.js`, `lib/feedbacks.js`, `lib/lesson-reports.js`, `lib/share.js`, `lib/chat.js`, `lib/groups.js` (+photos-блок) |
|
||||
| **9** | Крупный | **НЕ НАЧАТО** | `lib/students.js`, `lib/entries.js` (+photos/AI), `lib/faces.js`, `lib/backup.js` (блок `5631–6471`), `lib/settings.js`, `lib/api-v1.js` (`12473–13041`) |
|
||||
| **9** | Крупный | **В ПРОЦЕССЕ** | `lib/students.js` (сделано: `STUDENT_STATUSES`, `normalizeStudentStatus`, `ensureStudentsTable`; CRUD/профиль ещё в `server.js`), `lib/entries.js` (+photos/AI), `lib/faces.js`, `lib/backup.js` (блок `5631–6471`), `lib/settings.js`, `lib/api-v1.js` (`12473–13041`) |
|
||||
| **10** | Bootstrap финал | **НЕ НАЧАТО** | `ensure*`, startup IIFE (`13115–13219`), worker-wiring, листенеры SIGTERM |
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user