fix(credentials): edit-test corruption + browser-profile name reuse (partial unique index) (#7157)

Co-authored-by: AronPerez <aperez0295@gmail.com>
This commit is contained in:
Shuchang Zheng 2026-07-07 08:58:42 -07:00 committed by GitHub
parent e2edbd9aea
commit e116aaf35c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 81 additions and 5 deletions

View file

@ -1243,8 +1243,8 @@ class BrowserProfileModel(Base):
"organization_id",
"name",
unique=True,
postgresql_where=text("is_managed = false"),
sqlite_where=text("is_managed = false"),
postgresql_where=text("is_managed = false AND deleted_at IS NULL"),
sqlite_where=text("is_managed = false AND deleted_at IS NULL"),
),
Index(
"uq_browser_profiles_managed_segment",