api-client/packages/hoppscotch-backend/prisma/migrations
shaezard 1824990980
fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647)
* fix: add teamID/userUid filter to updateMany queries

Prevents cross-user/cross-team orderIndex corruption

* fix: fix orderIndex of existing collections

* feat(backend): add cascade delete for collections

- Add onDelete: Cascade to TeamCollection parent relationship
- Add onDelete: Cascade to UserRequest → UserCollection relationship
- Remove manual recursive deleteCollectionData methods
- Simplify deleteUserCollection and deleteTeamCollection services
- Add Prisma migration for cascade delete foreign keys

Resolves #5654

* refactor(team-collection): remove manual deleteCollectionData method

Resolves #5654

* fix(backend): fixed locking mechanisms for collections and requests

- User/Team Collection/Requests

Resolves #5666

---------

Co-authored-by: Abdur Rahman Daanish <abdurrahman_daanish@intuit.com>
2026-01-23 00:32:48 +06:00
..
20230406064219_init fix: refactor related to checklist observation (#73) 2023-04-07 22:22:41 +05:30
20231106120154_embeds_addition feat: introduction of shared-requests (#3476) 2023-11-07 17:57:51 +05:30
20231124104640_infra_config HBE-326 feature: server configuration through GraphQL API (#3591) 2023-12-12 16:42:58 +06:00
20231130082054_collection_headers feat: addition of data field into User and Team Collections (#3614) 2023-12-05 20:12:37 +05:30
20240226053141_full_text_search_additions refactor: use trigram search index instead of full text search (#3900) 2024-03-15 20:10:12 +05:30
20240519093155_add_last_logged_on_to_user HSB-445 feature: storing user last login timestamp (#4074) 2024-05-27 21:49:42 +05:30
20240520091033_personal_access_tokens feat: adding support for hopp-cli in self-host Hoppscotch (#4079) 2024-05-28 16:39:50 +05:30
20240621062554_user_last_active_on HSB-450 feature: user last active on (#4121) 2024-06-21 12:40:21 +05:30
20240725043411_infra_config_encryption HSB-473 feat: encrypt sensitive data before storing in db (#4212) 2024-08-14 13:04:12 +05:30
20240726121956_infra_token HSB-462 feat: infra token module and sh apis (#4191) 2024-07-29 12:36:18 +05:30
20241118054346_infra_config_sync_with_env_file feat: env file sync with infra config (#4545) 2024-11-26 19:52:51 +05:30
20250306054346_team_access_role_enum refactor: rename enum TeamMemberRole to TeamAccessRole (#5053) 2025-05-07 17:56:10 +05:30
20250725154928_timestamp_with_timezone chore: migrate to @db.Timestamptz(3) and remove luxon dependency (#5283) 2025-07-28 21:32:14 +06:00
20250818154928_fix_order_index fix: maintain incremental orderIndex for collections and requests (#5338) 2025-08-27 13:33:27 +05:30
20250822044741_order_index_unique_constraint fix: maintain incremental orderIndex for collections and requests (#5338) 2025-08-27 13:33:27 +05:30
20251016080714_mock_server feat: mock server (#5482) 2025-10-27 23:03:22 +05:30
20251110141554_api_doc feat: API Documentation (#5499) 2025-11-25 11:26:57 +05:30
20251202154928_fix_order_index fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647) 2026-01-23 00:32:48 +06:00
20251203202452_cascade_delete fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647) 2026-01-23 00:32:48 +06:00
migration_lock.toml chore: migrate to @db.Timestamptz(3) and remove luxon dependency (#5283) 2025-07-28 21:32:14 +06:00