RezinaLMS-BackEnd/db/query
Yared Yemane 4cfc090d06 Block subscription plan delete when subscriptions exist.
Return 409 with a clear message instead of a foreign-key 500 when a plan is still referenced by user subscriptions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 11:21:26 +03:00
..
activity_logs.sql cloud convert integration + more advanced activity log + issue reporting + video file management fixes 2026-02-11 06:54:05 -08:00
analytics.sql Use EAT for analytics windows and add payment_method filter. 2026-08-04 03:19:20 -07:00
auth.sql afro SMS and partial ArifPay Payment Gateway integrations 2025-12-18 18:06:26 +03:00
device.sql fix: improve bulk push token targeting and update notifications docs 2026-06-15 06:18:42 -07:00
exam_prep_admin_activity.sql feat: attach exam prep practices to catalog courses and units 2026-06-25 04:18:25 -07:00
exam_prep_catalog_courses.sql feat: attach exam prep practices to catalog courses and units 2026-06-25 04:18:25 -07:00
exam_prep_lesson_practices.sql fix: return all exam-prep practices when pagination is omitted 2026-07-10 02:01:15 -07:00
exam_prep_practice_parents.sql feat: add per-parent practice unlink endpoints for LMS and exam-prep 2026-07-02 04:21:30 -07:00
exam_prep_progress.sql feat: attach exam prep practices to catalog courses and units 2026-06-25 04:18:25 -07:00
exam_prep_unit_module_lessons.sql feat: attach exam prep practices to catalog courses and units 2026-06-25 04:18:25 -07:00
exam_prep_unit_modules.sql feat: attach exam prep practices to catalog courses and units 2026-06-25 04:18:25 -07:00
exam_prep_units.sql feat: attach exam prep practices to catalog courses and units 2026-06-25 04:18:25 -07:00
issue_reporting.sql cloud convert integration + more advanced activity log + issue reporting + video file management fixes 2026-02-11 06:54:05 -08:00
lms_admin_activity.sql feat: allow LMS practices to link to multiple course/module/lesson parents 2026-06-18 04:14:34 -07:00
lms_courses.sql feat: allow LMS practices to link to multiple course/module/lesson parents 2026-06-18 04:14:34 -07:00
lms_lessons.sql feat: allow LMS practices to link to multiple course/module/lesson parents 2026-06-18 04:14:34 -07:00
lms_modules.sql feat: allow LMS practices to link to multiple course/module/lesson parents 2026-06-18 04:14:34 -07:00
lms_personas.sql Add optional gender to LMS personas. 2026-05-20 06:37:21 -07:00
lms_practice_parents.sql feat: add per-parent practice unlink endpoints for LMS and exam-prep 2026-07-02 04:21:30 -07:00
lms_practices.sql feat: add practice-level stimulus blocks for shared IELTS content 2026-07-02 03:16:36 -07:00
lms_progress.sql feat: allow LMS practices to link to multiple course/module/lesson parents 2026-06-18 04:14:34 -07:00
notification.sql feat: add in-app notification delete APIs and fix FAQ RBAC access 2026-06-14 02:15:00 -07:00
otp.sql fix OTP verification by submitted code 2026-04-25 05:07:19 -07:00
payments.sql feat: create PENDING subscription when payment is initiated 2026-07-10 05:44:05 -07:00
practice_progress.sql added program 2026-04-23 00:59:01 -07:00
practice_stimulus_blocks.sql feat: add practice-level stimulus blocks for shared IELTS content 2026-07-02 03:16:36 -07:00
practices_by_question_type.sql fix: return exam-prep catalog and unit parents in question type practice list 2026-07-02 04:42:36 -07:00
programs.sql free/premium feature 2026-06-10 04:23:47 -07:00
question_audio_answers.sql customer RBAC 2026-03-05 07:58:48 -08:00
question_options.sql Speed up API paths with batch question loads, request memoization, and soft caches. 2026-08-01 00:06:43 -07:00
question_set_items.sql feat: add practice-level stimulus blocks for shared IELTS content 2026-07-02 03:16:36 -07:00
question_sets.sql Support progressive placement with one assessment set per CEFR level. 2026-08-03 11:04:19 -07:00
question_short_answers.sql Speed up API paths with batch question loads, request memoization, and soft caches. 2026-08-01 00:06:43 -07:00
questions.sql dynamic question type builder completion 2026-05-08 10:12:02 -07:00
ratings.sql added cloudconvert for thumbnails + added ratings service 2026-02-18 02:56:08 -08:00
rbac.sql fix: resolve custom team roles case-insensitively against RBAC 2026-07-03 05:07:48 -07:00
scheduled_notification.sql feat: wire email templates for outbound, welcome, and password reset flows 2026-06-15 05:17:01 -07:00
settings.sql afro SMS and partial ArifPay Payment Gateway integrations 2025-12-18 18:06:26 +03:00
subscriptions.sql Block subscription plan delete when subscriptions exist. 2026-08-05 11:21:26 +03:00
team_invitations.sql Add team member email invitations for admin panel onboarding 2026-05-22 03:43:00 -07:00
team_otps.sql fix: prevent reuse of team password-reset links 2026-07-10 06:29:05 -07:00
team_refresh_tokens.sql refresh token fix 2026-04-17 10:16:25 -07:00
team.sql Fix partial team member updates clearing team_role on invite accept. 2026-05-22 07:54:44 -07:00
user_audio_responses.sql MinIO integration + speaking implementation adjustment 2026-03-12 07:06:16 -07:00
user_recent_activity.sql feat: allow LMS practices to link to multiple course/module/lesson parents 2026-06-18 04:14:34 -07:00
user.sql Treat INACTIVE user status filter as all non-ACTIVE accounts. 2026-08-04 16:53:13 +03:00
video_engagement.sql Add video engagement tracking and analytics metrics. 2026-05-24 02:59:46 -07:00