1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/util/Migrator/DbScripts
Rui Tomé f5caecc6d6
[AC-1722] Deprecate "Edit/Delete Assigned Collections" custom permissions (#4604)
* Add SQL script to migrate custom users with specific permissions to User type

Remove 'editAssignedCollections' and 'deleteAssignedCollections' properties from Permissions in OrganizationUser table. Migrate custom users who only have these permissions to the User type.

* Add MySQL migration to migrate custom users with specific permissions to User type

* Add Postgres migration to migrate custom users with specific permissions to User type

* Add Sqlite migration to migrate custom users with specific permissions to User type

* Update AutoFixture usage in tests to resolve creating ILogger mock instances

* Update EF integration tests database contexts to use each respective Migrations assembly. Configure Sqlite instance

* Add RunMigration method to BaseEntityFrameworkRepository

* Add FinalFlexibleCollectionsDataMigrationsTests

* Improve data migration efficiency by using OPENJSON instead of multiple JSON_EXTRACT

* Add batching to the sql data migrations

* Update DbMigrator to run a specific script based on its name

* Update DatabaseDataAttribute to be able to test a specific migration

* Add reference to the migration projects to Infrastructure.IntegrationTest

* Add integration test to test the migration FinalFlexibleCollectionsDataMigrations

* Remove EFIntegration tests and remove RunMigration method from BaseEntityFrameworkRepository

* Add IMigrationTesterService and implementations for SQL and EF migrations

* Add FinalFlexibleCollectionsDataMigrationsTests and remove test from OrganizationUserRepositoryTests

* Update sql data migration script based on performance feedback

* Bump date on EF migration scripts

* Add xmldoc comments to IMigrationTesterService and each implementation

* Bump up the date on the EF migration scripts

* Bump up dates on EF migrations

* Added tests to assert no unwanted changes are made to the permissions json. Refactor tests.

* Revert changes made to DbMigrator and refactor SqlMigrationTesterService to not use it.

* Add method description

* Fix test to assert no changes are made to custom user

* Remove unnecessary COALESCE and SELECT CASE

* Unident lines on SQL script

* Update DatabaseDataAttribute MigrationName property to be nullable

* Fix null reference checks

* Remove unnecessary COALESCE from Postgres script

* Bump dates on migration scripts

* Bump up dates on EF migrations

* Add migration tests for handling null

* Add test for non json values

* Fix test

* Remove migrations

* Recreate EF migrations

* Update Postgres data migration script to check for valid JSON in Permissions column

---------

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2024-09-02 11:04:55 +01:00
..
2017-08-19_00_InitialSetup.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-08-22_00_LicenseCheckScripts.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-08-30_00_CollectionWriteOnly.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-09-06_00_CipherDetails.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-09-08_00_OrgUserCounts.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-10-25_00_OrgUserUpdates.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-11-06_00_FamilyPlanAdjustments.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2017-11-13_00_IndexTuning.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-11-24_00_UpdateProcs.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2017-12-12_00_Events.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2018-02-28_00_LoginUris.sql [SM-206] Update sqlproject to match migrations (#2246) 2022-09-08 21:42:02 +02:00
2018-03-12_00_FixLoginUris.sql [SM-206] Update sqlproject to match migrations (#2246) 2022-09-08 21:42:02 +02:00
2018-03-21_00_AdminPortal.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-04-02_00_Org2fa.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2018-04-24_00_CipherQueryTuning.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-06-11_00_WebVaultUpdates.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-07-28_00_DbTuning.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-08-14_00_UserKdf.sql Fix UserKdf and UserApiKey migrations to only update null values (#1494) 2021-08-03 15:54:47 -04:00
2018-08-28_00_PremiumOrgAbilities.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-09-25_00_OrgPurge.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-10-17_00_ManagerRole.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2018-12-19_00_OrgUserTwoFactorEnabled.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2019-01-31_00_Transactions.sql move migrator project to util 2019-03-25 13:23:50 -04:00
2019-03-01_00_OrgApi.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2019-05-01_00_CipherOrgDetailsFix.sql fix issues on cipher admin endpoints 2019-05-01 09:38:13 -04:00
2019-05-15_00_GroupNameFixes.sql group name fix 2019-05-15 22:38:52 -04:00
2019-05-28_00_CollectionCipherImprovements.sql collection cipher query improvements 2019-05-28 23:55:47 -04:00
2020-02-18_00_PolicySetup.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2020-03-26_00_CipherSoftDelete.sql Updated PR comments, changed smart defaults for behavior, updated Cipher table index 2020-03-27 10:23:37 -04:00
2020-04-01_00_CipherSoftDelete.sql [Soft-Delete] Simplify the data-tier, removed extra sprocs and reuse update 2020-04-01 16:39:27 -04:00
2020-04-02_00_CipherSoftDelete.sql [Soft Delete] - cleanup whitespace in Cipher_Restore 2020-04-10 10:51:27 -04:00
2020-04-09_00_CipherSoftDelete.sql [Soft Delete] - Add not null/is null filters to soft delete and restore sprocs 2020-04-09 15:25:17 -04:00
2020-05-02_00_SprocPerfTweaks.sql Sproc tweaks (#730) 2020-05-21 11:35:00 -04:00
2020-05-22_00_HiddenPassword.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2020-06-23_00_OrgIdentifier.sql DAL & CRUD for SSO 2020-06-25 16:42:29 -04:00
2020-06-24_00_SsoConfig.sql Remove Id from SsoConfig_Create sproc 2020-06-26 16:47:41 -04:00
2020-06-25_00_ReferenceId.sql DAL & CRUD for SSO 2020-06-25 16:42:29 -04:00
2020-07-17_00_ReferenceData.sql Transition reference id to data (#828) 2020-07-20 15:19:46 -04:00
2020-07-20_00_OrgSso.sql Update SQL files to be backwards compatible when adding columns (#1635) 2021-10-15 12:28:21 -04:00
2020-07-21_00_BulkDeleteCiphersAsOrgAdmin.sql missing go 2020-07-28 21:53:12 -04:00
2020-07-27_00_SsoUser.sql Sso user table, model and repo stubbed out (#837) 2020-07-28 10:03:09 -04:00
2020-07-28_00_SsoBound.sql return if org user has sso binding (#839) 2020-07-28 21:11:45 -04:00
2020-07-30_00_IdServerv4.sql upgrade identity server 4 to v4 (#842) 2020-07-30 17:00:13 -04:00
2020-08-12_00_OrgIdentifierProc.sql Added PreValidate endpoint on Account controller (#896) 2020-08-28 12:14:23 -04:00
2020-08-13_00_AllowNullMasterPassword.sql allow user registration for sso (#865) 2020-08-13 17:30:10 -04:00
2020-08-19_00_AddIdentifierToOrgView.sql Create sso user api (#886) 2020-08-26 14:12:04 -04:00
2020-08-19_00_SsoConfigGetAll.sql Added get for sso config repo by revision date (#878) 2020-08-19 13:35:17 -04:00
2020-08-28_00_OrgByIdentifierFix.sql Added PreValidate endpoint on Account controller (#896) 2020-08-28 12:14:23 -04:00
2020-09-01_00_DeleteSsoUser.sql delete sso user when deleting org user (#901) 2020-09-01 15:07:47 -04:00
2020-09-01_01_DeleteSsoUser2.sql delete ssouser on org and user delete (#902) 2020-09-01 16:05:37 -04:00
2020-09-02_00_DeleteSsoConfig.sql delete sso config when deleting org (#904) 2020-09-02 10:48:15 -04:00
2020-10-06_00_Send.sql Send APIs (#979) 2020-11-02 15:55:49 -05:00
2020-10-08_00_DeleteOrgUserWithOrg.sql [Require SSO] Enterprise policy enforcement (#970) 2020-10-26 11:56:16 -05:00
2020-10-14_00_OrgUserReadByUserIds.sql Only org policy (#962) 2020-10-20 02:48:10 -04:00
2020-10-20_00_OrgReadAbilities.sql [Require SSO] Enterprise policy enforcement (#970) 2020-10-26 11:56:16 -05:00
2020-10-28_00_UserApiKey.sql Fix typos in comments (#2876) 2023-05-09 17:38:47 +02:00
2020-11-16_00_SalesTax.sql fixed a copy/paste bug in the tax rate migration script (#1077) 2021-01-07 16:36:18 -05:00
2020-11-18_00_EmergencyAccess.sql Add support for Emergency Access (#1000) 2020-12-16 14:36:47 -05:00
2020-12-04_00_OrgUserReadByOrgEmail.sql Fix sproc name mismatch in migration sql (#1066) 2020-12-30 16:21:14 -05:00
2020-12-06_00_OrgUserOrgDetailsReadByUserIdStatusOrgId.sql [Policy] Personal Ownership (#1013) 2020-12-11 10:45:26 -06:00
2020-12-14_00_Permissions.sql Implemented Custom role and permissions (#1057) 2021-01-12 11:02:39 -05:00
2021-01-05_00_ReturnRevisionDateOnCipherRestore.sql Add cipher response to restore (#1072) 2021-01-08 08:52:42 -06:00
2021-01-28_00_AddDeleteSendsToUserDeleteById.sql Delete sends belonging to user on user delete (#1116) 2021-02-05 12:37:55 -06:00
2021-02-26_00_EmergencyAccess_ReadToNotify.sql [Bug] Updated incorrect formatting/spelling on migrator script (#1228) 2021-03-22 10:24:28 -05:00
2021-03-04_00_Installation_Enlarge_Email_Column.sql Fixes #1101: Extend email column length to 256 characters (MSSQL) (#1191) 2021-03-18 16:43:49 -04:00
2021-03-04_01_User_Enlarge_Email_Column.sql Fixes #1101: Extend email column length to 256 characters (MSSQL) (#1191) 2021-03-18 16:43:49 -04:00
2021-03-04_02_Organization_Enlarge_Email_Column.sql Fixes #1101: Extend email column length to 256 characters (MSSQL) (#1191) 2021-03-18 16:43:49 -04:00
2021-03-04_03_OrganizationUser_Enlarge_Email_Column.sql Fix column NULLness for OrganizationUser table (#1239) 2021-03-24 12:50:57 -04:00
2021-03-04_04_EmergencyAccess_Enlarge_Email_Column.sql Fix emergency access migration not working (#1244) 2021-03-29 17:28:36 +02:00
2021-03-22_00_Send_Add_HideEmail_Column.sql Hide email address in Sends (#1234) 2021-03-29 07:56:56 +10:00
2021-03-23_00_AddResetPasswordKey.sql [Reset Password] Update all existing tables/sprocs/migrator scripts (#1235) 2021-03-23 16:04:11 -05:00
2021-03-26_00_CipherDeletedIndex.sql job to delete trashed ciphers nightly (#1243) 2021-04-02 11:14:21 -04:00
2021-04-07_00_IncreaseOrgSeatSize.sql Support large organization sync (#1311) 2021-05-17 09:43:02 -05:00
2021-04-16_00_OrganizationUser_DeleteMany.sql Support large organization sync (#1311) 2021-05-17 09:43:02 -05:00
2021-04-27_00_OrganizationUser_UpsertMany.sql Support large organization sync (#1311) 2021-05-17 09:43:02 -05:00
2021-04-28_00_OrgResetPasswordAbilityAndRsaKeys.sql [Reset Password] Updated OrgResetPasswordAbilityAndRsaKeys sql script (#1418) 2021-06-28 12:15:55 -05:00
2021-04-30_00_Select_Known_OrganizationUsers_Emails.sql Support large organization sync (#1311) 2021-05-17 09:43:02 -05:00
2021-05-04_00_CipherPasswordPromptFixed.sql Fix password re-prompt not working in org view (#1296) 2021-05-04 20:36:35 +02:00
2021-05-11_00_BulkReinvite.sql Fix typo in bulk reinvinte migration (#1357) 2021-05-27 17:29:23 +02:00
2021-05-18_00_BulkConfirm.sql Fix bulk fingerprints (#1442) 2021-07-07 20:21:52 +10:00
2021-05-27_00_SetQuotedIdentifier.sql Explicitly set quoted identifier on for problem objects (#1360) 2021-06-01 14:52:22 -05:00
2021-07-07_00_FixBulkConfirm.sql Fix bulk fingerprints (#1442) 2021-07-07 20:21:52 +10:00
2021-07-08_00_EntityFrameworkSupport.sql Postgres & MySql Support For Self-Hosted Installations (#1386) 2021-07-08 16:35:48 +00:00
2021-07-13_00_UserForcePasswordReset.sql [Reset Password v1] Fixed ForcePasswordReset migration script (#1484) 2021-07-23 08:48:34 -05:00
2021-07-15_00_OrganizationUserReadByMinimumRole.sql fixed a bad migration change (#1511) 2021-08-12 13:06:02 -04:00
2021-07-22_00_FixCollectionReadBy.sql Fix conflicting group permissions (#1473) 2021-08-02 11:49:27 +10:00
2021-07-22_00_Provider.sql Fix case inconsitency in provider migration (#1806) 2022-01-12 15:25:15 +01:00
2021-08-12_00_ReadByMinimumRoleCheckStatus.sql Add OrganizationUser_ReadByMinimumRole to Sql.sqlproj (#1555) 2021-09-07 15:42:44 +02:00
2021-08-18_00_AutoscaleOrganizationsSeats.sql Organization autoscaling (#1585) 2021-09-23 05:36:08 -05:00
2021-08-19_00_FixTaxRate.sql Increase sales tax precision from 2 to 3 decimal places (#1525) 2021-08-24 06:52:59 +10:00
2021-09-02_00_SsoUserReadyByUserIdOrganizationId.sql Remove stale SsoUser objects from database (#1560) 2021-09-03 10:54:41 -04:00
2021-09-10_00_DeleteProviderUser.sql Resolve error when deleting an account connected to a provider (#1580) 2021-09-15 20:34:06 +02:00
2021-09-16_00_PolicyApplicableToUser.sql Refactor policy checks (#1536) 2021-09-28 06:54:28 +10:00
2021-09-21_01_SplitManageCollectionsJson.sql ⚠️ Do not specify database in migration files (#1628) 2021-10-11 10:20:21 -05:00
2021-10-21_00_DefaultAutoscaleLimitToCurrentSeats.sql Default autoscaling to off (#1659) 2021-10-22 08:11:14 -05:00
2021-11-01_00_FixPolicyApplicableToUser.sql Fix policy enforcement against invited users (#1680) 2021-11-03 07:08:13 +10:00
2021-11-02_00_OrganizationSponsorship.sql Families for Enterprise (#1714) 2021-11-19 17:25:06 -05:00
2021-11-08_00_KeyConnector.sql Add support for Key Connector OTP and account migration (#1663) 2021-11-09 16:37:32 +01:00
2021-11-09_00_DropUsesCryptoAgent.sql [bug] Drop unused db column UsesCryptoAgent (#1704) 2021-11-09 12:33:18 -05:00
2021-11-12_00_KeyConnectorFlag.sql Key Connector feature toggle (#1716) 2021-11-17 11:46:35 +01:00
2021-11-18_00_MergeKeyConnectorAndFFE.sql Families for Enterprise (#1714) 2021-11-19 17:25:06 -05:00
2021-11-23_00_NullOrganizationSponsorshipOnFkDelete.sql Null out sponsorship values when foreign key deleted (#1733) 2021-11-24 08:26:11 -06:00
2021-11-30_00_NullOrganizationSponsorshipOnOrgDelete.sql Null org, org user ids, and friendly name to indicate invalid, unused sponsorship state (#1738) 2021-12-01 14:34:56 -06:00
2022-01-21_00_RemoveU2F.sql Remove the u2f lib (#1820) 2022-01-24 12:14:04 +01:00
2022-02-10_00_FailedLoginCaptcha.sql [Captcha] Update migration script with Default Constraint (#1905) 2022-03-11 16:38:52 -06:00
2022-03-01_00_AddApiKeysTable.sql Limit migrations to only once (#1996) 2022-05-12 10:11:47 -04:00
2022-04-06_00_SponsorshipBulkActions.sql Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
2022-04-13_00_OrganizationSponsorshipUpdates.sql Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
2022-04-14_00_ReadOrganizationConnectionsByOrganizationId.sql Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
2022-04-15_00_FixOrganizationConnectionCreate.sql Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
2022-04-20_00_AddInstalltionIdToEvents.sql Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
2022-05-10_00_RebuildMetadata.sql Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
2022-05-23_00_OrgUserDelete.sql Change OrgUser Delete Behavior (#2010) 2022-05-23 15:50:54 -04:00
2022-05-24_00_DeviceUnknownVerification.sql [PS-589] Fix DeviceUnknownVerification User_Update proc (#2041) 2022-06-13 16:42:24 +02:00
2022-05-31_00_CipherOrganizationDetails.sql [PS-165] Missing copy verification code (#2022) 2022-06-07 16:52:07 +01:00
2022-06-08_00_DeactivatedUserStatus.sql EC-262 - implement org user deactivated flag and behavior server (#2050) 2022-06-16 15:59:57 -04:00
2022-06-24_00_UseScimFlag.sql [EC-261] SCIM (#2105) 2022-07-14 15:58:48 -04:00
2022-07-15_00_FixOrgUserDetails.sql update OrgUserDetailsView to include PlanType and other sponsorship parameters previously removed (#2122) 2022-07-17 20:28:46 -04:00
2022-07-19_00_FixUseScimFlag.sql Add migration script to rebuild OrganizationView (#2127) 2022-07-19 09:10:44 -04:00
2022-07-20_00_ProviderOrganizationListDetails.sql [EC-247] Add columns to provider portal clients table (#2136) 2022-07-28 09:31:03 +01:00
2022-07-28_00_CheckPoliciesOnRestore.sql [EC-388] Enforce organization policies when restoring user (#2152) 2022-08-02 17:09:22 -04:00
2022-09-08_00_CipherMovePermissions.sql Ps 976 moving of read only organization collection items to different folder not possible (#2257) 2022-10-25 12:23:49 -07:00
2022-09-12_00_AuthRequestInit.sql [SG-167] Implement Passwordless Authentication via Notifications (#2276) 2022-09-26 13:21:13 -04:00
2022-09-12_01_AuthRequestUpdate.sql [SG-169] Add arguements to AuthRequest_Update.sql (#2313) 2022-09-28 14:46:07 -04:00
2022-09-20_00_AvatarColor.sql [SG-58] Avatar color selector (#2330) 2023-01-01 11:28:59 -05:00
2022-09-26_00_EventsSystemUser.sql [EC-449] Event log user for SCIM events (#2306) 2022-11-09 12:13:29 +00:00
2022-10-11_00_UseCustomPermissionsFlag.sql [EC-343] Gate custom permissions behind enterprise plan (#2352) 2022-12-06 09:50:08 +00:00
2022-10-24_00_AuthRequestAddApprovedColumn.sql [SG-763] Store the fact that a Passwordless request was denied in the AuthRequest table (#2363) 2022-10-25 17:14:48 -04:00
2022-10-24_00_CollectionManagement.sql [EC-647] OAVR v2 Feature Branch Merge (#2588) 2023-01-19 11:00:54 -05:00
2022-10-24_01_ReadGroupsWithCollectionsByOrgId.sql [EC-647] OAVR v2 Feature Branch Merge (#2588) 2023-01-19 11:00:54 -05:00
2022-10-25_00_CollectionsWithGroupsAndUsers.sql [EC-647] OAVR v2 Feature Branch Merge (#2588) 2023-01-19 11:00:54 -05:00
2022-11-03_00_OrganizationDomainInit.sql [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
2022-11-18_00_PolicyReadByUserIdRemoveEnabledOrgCheck.sql Defect/SG-825 - users in org w/ no personal vault still see personal vault (disabled org policies now still apply) (#2429) 2022-12-16 15:22:39 -05:00
2022-12-08_00_EventsDomainName.sql [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
2022-12-08_00_OrgUserGroupsAndCollections.sql [EC-647] OAVR v2 Feature Branch Merge (#2588) 2023-01-19 11:00:54 -05:00
2022-12-26_00_ProviderAddProviderTypeBillingPhone.sql [EC-427] Add provider types (MSP/Reseller) to Provider table (#2518) 2023-01-23 16:08:05 +00:00
2023-01-06_00_SecretsManager.sql [SM-394] Secrets Manager (#2164) 2023-01-13 15:02:53 +01:00
2023-01-13_00_AddAvatarColorToEmergencyAccess.sql [SG-927] Pull the user's selected avatar color from the state store and display on Emergency Contacts page (#2582) 2023-01-20 13:11:16 -05:00
2023-01-15_00_KDFOptions.sql [EC-1043] Fix syntax error in ReadKdfByEmail query (#2631) 2023-01-26 15:34:18 +10:00
2023-01-17_00_SecretsManagerOrganizationUser.sql [SM-378] Enable SM on a user basis (#2590) 2023-01-31 18:38:53 +01:00
2023-01-18_00_FixOrganizationDeleteOrgDomain.sql Fix name of FixOrganizationDeleteOrgDomain (#2706) 2023-02-16 15:53:28 +01:00
2023-01-20_00_OrganizationStatus.sql [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
2023-01-20_00_SecretsManager_Admin_Fix.sql [SM-454] Refresh OrganizationView (#2605) 2023-01-23 18:03:45 +01:00
2023-01-23_00_AddAvatarToOrganizationUsers.sql [SG-783] Change organization user list to pull the user's selected color and display it in the avatar (#2630) 2023-02-21 15:59:50 -05:00
2023-01-24_00_AutoscalingProviderOrgFixes.sql Defect/SG-992 ProviderOrgs Missing Plan Type & EC-591/SG-996 - Provider Org Autoscaling Email Invites Working (#2596) 2023-01-26 11:51:26 -05:00
2023-01-26_00_FixUserReadKdfByEmail.sql [EC-1043] Fix syntax error in ReadKdfByEmail query (#2631) 2023-01-26 15:34:18 +10:00
2023-02-01_00_LastUserDates.sql add timestamps to user table for security related events (#2660) 2023-02-02 14:39:57 -05:00
2023-02-06_00_ProviderReadByOrganizationId.sql [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
2023-02-14_00_RevokeApiKeys.sql [SM-501] Add support for revoking access tokens (#2692) 2023-02-16 10:51:02 +01:00
2023-02-16_00_SecretsManagerEvent.sql [SM-389] Event log for service account (#2674) 2023-02-24 16:44:33 +01:00
2023-02-16_00_SelfHostedOrganizationDetails.sql [EC-635] Extract organizationService.UpdateLicenseAsync to a command (#2408) 2023-02-24 07:54:19 +10:00
2023-02-16_FixSsoAvailableOrganizationDomain.sql [SG-1082]-Defect-Update stored procedure to properly determine is SSO is available (#2715) 2023-02-17 13:19:21 -05:00
2023-02-22_FixOrganizationUserUserDetailsViewOutOfSync.sql [PM-1128] Add Migration to Sync OrganizationUserUserDetailsView (#2732) 2023-02-22 19:11:16 -05:00
2023-02-22_FixReturningExpiredDomainsAfterSpecifiedPeriod.sql Made correction to the domain used to domains that have been unverified after 72 hours. Instead of doing a greater than or equal to the condition is set to a fixed period 4, so domains after 4 days which are uneverified would not be picked up by the service (#2729) 2023-02-22 19:25:26 -05:00
2023-03-08_OrganizationProviderType.sql [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
2023-03-10_00_OrganizationUserReadByUserIdWithPolicyDetails.sql [EC-787] Create a method in PolicyService to check if a policy applies to a user (#2537) 2023-05-12 08:22:19 +01:00
2023-03-15_AuthRequestRemoveFingerprintPhrase.sql [PM-107] Remove fingerprint phase 2 (#2809) 2023-03-23 13:08:49 +00:00
2023-03-22_00_ProviderAddExistingOrganizations.sql [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
2023-03-30_00_RemovePolicyCheckOrganizationDomainSsoDetais.sql Modified sso details stored procedure to remove policy checks or an organization (#2831) 2023-04-03 11:03:59 -04:00
2023-04-13_00_ProviderReadCountByOrganizationIds.sql [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
2023-04-21_00_CipherRestoreByIdsOrganizationId.sql [AC-1344] Provider users unable to bulk restore vault items for client organizations (#2871) 2023-08-02 16:22:37 +01:00
2023-04-21_00_DeleteAccessPoliciesOnOrganizationDelete.sql SM-718: Delete appropriate Access Policies on Org deletion (#2868) 2023-04-21 14:34:18 -04:00
2023-04-26_00_FixOrganizationView.sql Refresh OrganizationView (#2883) 2023-04-26 08:37:52 +01:00
2023-04-26_01_FixOrganizationStatus.sql [PM-1974] Update the status of organizations from Pending to Created (#2886) 2023-04-27 10:21:32 +10:00
2023-05-03_00_ProviderUserReadByOrganizationIdStatus.sql [AC-621] Added possibility of adding users through SCIM to an Organization without a confirmed Owner (#2846) 2023-05-17 16:39:08 +01:00
2023-05-08-00_WebAuthnLoginCredentials.sql Support for passkey registration (#2885) 2023-10-30 09:40:06 -04:00
2023-05-16_00_ClientSecretHash.sql [SM-678] ClientSecret migration (#2943) 2023-06-21 13:16:06 -05:00
2023-05-18_00_UserHasMasterPassword.sql [AC-1144] Warn admins when removing or revoking users without master password (#2953) 2023-06-16 16:38:58 +01:00
2023-05-21_00_AddKeysToDevice.sql [PM-1380] Modify Device Table (#2937) 2023-06-09 21:36:12 -04:00
2023-05-27_00_OrganizationSecretsManagerBillingColumns.sql [AC 1427]Add New Organisation Properties Update DB Objects and create migration (#2980) 2023-06-12 23:48:17 +01:00
2023-06-01_00_TdeAdminApproval.sql [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
2023-06-07_00_DropUnusedCollectionSprocs.sql Run dbo_future migrations for OAVR v2 cleanup and PolicyService refactor (#3005) 2023-06-22 05:06:03 +00:00
2023-06-07_01_DropUnusedPolicySprocs.sql Run dbo_future migrations for OAVR v2 cleanup and PolicyService refactor (#3005) 2023-06-22 05:06:03 +00:00
2023-06-27_00_AuthRequestExpirationUpdates.sql [PM-1198] Modify AuthRequest Purge Job (#3048) 2023-06-30 14:13:31 -04:00
2023-07-10_00_FixTdeAdminApprovalEmail.sql [AC-1487] Update queries to use [User] table instead of [OrganizationUser] for email address (#3083) 2023-07-17 13:00:32 -05:00
2023-07-17_00_DeleteUserSproc.sql PM-2427-Defect-Cannot-delete-account-if-User-has-auth-request-on-table-FK-constraint (#3118) 2023-08-15 17:16:02 -04:00
2023-07-18_00_OrganizationUserReadByUserIdWithPolicyDetails.sql [PM-3007] Caching user policies on PolicyService variable (#3117) 2023-08-03 18:36:47 +01:00
2023-07-24_00_OrgUserReadOccupiedSmSeatCountByOrgId.sql [AC-1486] Feature: SM Billing (#3073) 2023-07-25 08:05:05 +10:00
2023-07-26_00_SecretsManagerBetaColumn.sql SM-802: Add SecretsManagerBeta Column Migration (#3065) 2023-07-26 15:55:28 -04:00
2023-08-03_00_PopulateResellerNames.sql Manually move data migration scripts (#3264) 2023-09-12 07:34:50 -07:00
2023-08-04_00_SecretsManagerBetaColumnData.sql SM-873: Move the SecretsManagerBeta Data Migration Into a Normal Migration (#3159) 2023-08-06 16:21:06 -04:00
2023-08-09_00_OrgAbilitiesUsePolicies.sql [AC-108] Enterprise policies are not removed when downgraded to teams (#3168) 2023-08-25 11:22:16 +01:00
2023-08-10_00_ClientSecretHashDataMigration.sql Remove indexing from data migration (#3247) 2023-09-07 11:33:46 -05:00
2023-08-10_01_RemoveClientSecret.sql [SM-823] ApiKey table follow up (#3183) 2023-08-29 17:15:07 -05:00
2023-08-16_00_HotfixRevertOrganizationUserReadByUserIdWithPolicyDetails.sql [AC-1597] Revert GetByUserIdWithPolicyDetailsAsync changes to unblock SQL CPU (#3203) 2023-08-16 13:42:09 +10:00
2023-09-11_00_2023-01-FutureMigration.sql Manually move future migrations (#3263) 2023-10-19 07:59:46 -07:00
2023-09-11_01_2023-02-FutureMigration.sql [PM-4589] Fix 2023-09-11_01_2023-02-FutureMigration (#3373) 2023-10-30 11:33:06 +01:00
2023-09-14_00_Remove_WebAuthn_For_Free_Users.sql Migration to remove WebAuthn 2FA method from Free users (#3271) 2023-09-18 18:36:26 -04:00
2023-09-27_00_CipherKeyUpdate.sql Individual Vault Item Encryption Feature (#3256) 2023-09-28 08:45:13 -04:00
2023-09-29_00_OrgDomainReadByIdOrgId.sql [PM-3779] idor allow the attacker to delete the victim domain (#3308) 2023-10-18 11:57:59 +01:00
2023-10-03_00_OrganizationReadOwnerEmailAddresses.sql [AC-1693] Send InvoiceUpcoming Notification to Client Owners (#3319) 2023-10-23 13:46:29 -04:00
2023-10-05_00_OrgConnectionsReadByIdOrgId.sql [AC-1654] idor allow the attacker to disable any one scim provising (#3325) 2023-10-18 11:39:00 +01:00
2023-10-09_00_Event_ReadPageByOrganizationIdServiceAccountId.sql [SM-949] Add endpoint to fetch events by service account (#3336) 2023-10-19 16:57:14 -05:00
2023-10-13_00_2019TeamsPlanFeatureUpgrade.sql [AC-1650] [AC-1578] (#3320) 2023-11-01 12:43:35 +00:00
2023-10-13_01_2019EnterprisePlanFeatureUpgrade.sql Remove UseKeyConnector field from Enterprise Plan Upgrade (#3409) 2023-11-03 18:07:53 -04:00
2023-10-13_02_2019FamilyPlanFeatureUpgrade.sql [AC-1650] [AC-1578] (#3320) 2023-11-01 12:43:35 +00:00
2023-10-21_00_User_ReadByEmails.sql Auth/PM-1658 - Dynamic Org Invite Link to accelerate users through org invite accept process (#3378) 2023-12-18 11:16:17 -05:00
2023-10-24_00_LimitCollectionCreationDeletion.sql [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
2023-10-24_01_CollectionManagePermission.sql [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
2023-10-24_02_CollectionManagePermission.sql [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
2023-10-24_03_BulkAddCollectionAccess.sql [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
2023-11-14_00_2019FamilyPlanPremium.sql [AC-1827] Organization PlanType Index (#3447) 2023-11-27 13:12:57 -05:00
2023-11-14_00_UpdateOrganizationUnassignedToProviderSearch.sql [AC-1828] [AC-1807] Aggregated admin panel pricing fixes (#3448) 2023-11-17 15:12:49 -05:00
2023-11-15_00_TurnOffSecretsManagerBeta.sql SM-1010: Turn off secrets manager beta with a new migration (#3451) 2023-11-20 12:36:02 -05:00
2023-11-27_00_AdminCollectionItemAccess.sql [AC-1122] Add AllowAdminAccessToAllCollectionItems setting to Organizations (#3379) 2023-11-27 11:44:07 -08:00
2023-11-28_00_DeprecateAccessAll_UserCipherDetails.sql [AC-1330] [AC-1850] Deprecate AccessAll in UserCollectionDetails and related sprocs (#3505) 2023-12-13 19:22:30 -05:00
2023-11-29_00_FixUserCipherDetails_V2.sql [AC-1868] Fix UserCipherDetails_V2 Function (#3491) 2023-11-30 13:09:09 -08:00
2023-12-01_00_DeprecateAccessAll_CollectionCipher.sql [AC-1330] [AC-1816] Deprecate AccessAll in CollectionCipher sprocs (#3480) 2023-12-06 11:10:39 +10:00
2023-12-04_00_GrantIndexes.sql [PM-5294][deps]: Update Duende.IdentityServer to v6.3.7 (#3499) 2023-12-28 15:04:45 -05:00
2023-12-13_00_DeprecateAccessAll_UserCollectionDetails.sql [AC-1330] [AC-1850] Deprecate AccessAll in UserCollectionDetails and related sprocs (#3505) 2023-12-13 19:22:30 -05:00
2023-12-18_00_RemoveAuthRequest_OrganizationDeleteById.sql [PM-3505][PM-4587] Update Delete Organization and User SPROCs and EF methods (#3604) 2023-12-27 07:08:49 -08:00
2023-12-20_00_RemovePassKeys_UserDeleteById.sql [PM-3505][PM-4587] Update Delete Organization and User SPROCs and EF methods (#3604) 2023-12-27 07:08:49 -08:00
2023-12-21_00_OrganizationAbilitiesWithCollectionManagementSettings.sql [AC-1809] Update OrganizationAbility with Collection Management Settings (#3571) 2023-12-28 10:07:06 +10:00
2023-12-28_00_FixUserCipherDetails_Again_V2.sql [AC-1985] Fix collection permissions when editing items (#3599) 2023-12-28 13:08:03 +10:00
2024-01-04_00_Send_Add_CipherId.sql [PM-221] Adding CipherId to the Send table, create/update sprocs, and added mi… (#3646) 2024-03-04 19:31:33 -05:00
2024-01-11_00_OrganizationFlexibleCollectionsColumn.sql [AC-2025] Add Organization.FlexibleCollections to database and sprocs (#3642) 2024-01-11 13:25:57 +10:00
2024-01-11_01_OrganizationAbilitiesAddFlexibleCollectionsColumn.sql [AC-2025] Add Organization.FlexibleCollections to database and sprocs (#3642) 2024-01-11 13:25:57 +10:00
2024-01-16_00_2023-10-FutureMigrations.sql Move DbScripts_finalization to DbScripts (#3675) 2024-02-12 14:00:09 -05:00
2024-01-25_00_Organization_EnableCollectionEnhancements.sql [AC-1682] Flexible collections: data migrations for deprecated permissions (#3437) 2024-01-25 14:08:09 +00:00
2024-01-29_00_ProviderOrganizationsFlexibleCollectionColumns.sql [AC-2104] Add flexible collections properties to provider organizations sync response (#3717) 2024-01-29 14:04:45 -06:00
2024-02-08_00_AddUnassignedCiphersQuery.sql [AC-1124] Restrict admins from accessing items in Collections tab (#3676) 2024-02-08 14:07:58 -08:00
2024-02-12_00_FixGrantSave.sql [PM-4767] Update Grant_Save procedure (#3641) 2024-02-14 09:48:58 -07:00
2024-02-16_00_AddSecretAccessPolicies.sql [SM-713] Add database support for secret access policies (#3681) 2024-02-22 10:06:39 -06:00
2024-03-07_00_SetupProviderBilling.sql [AC-1900] Update Vault DB to support provider billing (#3875) 2024-03-21 11:15:49 -04:00
2024-03-20_00_BulkCipherCollectionAssignment.sql [PM-2383] Bulk collection assignment (#3919) 2024-03-22 13:16:34 -07:00
2024-04-25_00_EnableAllOrgCollectionEnhancements.sql [AC-2323] Flexible collections: automatically migrate data for all Organizations (#3927) 2024-04-26 14:11:00 +01:00
2024-04-29_00_OrganizationUserReadWithCollectionsById.sql Fix migration script date to be merge date (#4028) 2024-04-29 07:08:31 -06:00
2024-05-01_00_CollectionsWithPermissionsQueries.sql [AC-2084] Include Collection permissions for admin endpoints (#3793) 2024-05-03 09:33:06 -04:00
2024-05-05_00_UpdateManyAuthRequests.sql Allow for bulk updating AuthRequest database objects (#4053) 2024-05-22 11:55:31 -05:00
2024-05-10_00_OrgUserReadManyAccountRecoveryDetailsByOrgUserIds.sql [AC-2328] Add a Bulk OrganizationUsersController.GetResetPasswordDetails endpoint (#4079) 2024-05-24 11:20:54 +01:00
2024-05-17_00_CollectionWithPermissionsAndUnmanagedQueries.sql [PM-8004] Move Unmanaged collection logic out of component for better reuse (#4108) 2024-05-21 14:42:47 -04:00
2024-05-20_00_FixManageAggregation.sql [AC-2604] Fix aggregation of CollectionGroup permissions (#4097) 2024-05-21 14:40:05 +10:00
2024-05-22_00_EnableAllOrgCollectionEnhancements_Rerun.sql [AC-2626] Re-run collection enhancements migration (#4111) 2024-05-22 10:15:44 +01:00
2024-05-23_00_DropEnableCollectionEnhancements.sql [AC-2522] Remove collection enhancements opt-in (#4110) 2024-05-24 09:00:04 +10:00
2024-05-30_00_OrganizationTransactionsReadImprovements.sql [AC-2567] Billing Performance Improvements (#4143) 2024-06-11 13:55:23 -04:00
2024-05-30_00_OrganizationUserOrganizationDetailsView_AddOrgUserIdCol.sql [AC-2286] Include the OrganizationUserId for each Organization in the user sync data (#4142) 2024-06-07 13:32:09 -05:00
2024-05-30_01_UserTransactionsReadImprovements.sql [AC-2567] Billing Performance Improvements (#4143) 2024-06-11 13:55:23 -04:00
2024-05-30_02_ProviderTransactionsReadImprovements.sql [AC-2567] Billing Performance Improvements (#4143) 2024-06-11 13:55:23 -04:00
2024-06-06_00_ProviderInvoiceItem.sql [AC-1943] Add ProviderInvoiceItem table (#4163) 2024-06-06 13:25:13 -04:00
2024-06-11_00_FixProviderInvoiceItem.sql [AC-1943] Implement provider client invoice report (#4178) 2024-06-14 12:26:49 -04:00
2024-06-20_00_FixOrganizationUserDeleteByIds.sql [SM-1075] Fix bulk remove organization users with Secrets Manager (#4197) 2024-06-21 17:29:36 -05:00
2024-06-25_00_FinalizeCollectionManagePermission.sql [AC-2204] Finalize sprocs that added the Manage permission (1 of 3) (#4204) 2024-06-27 05:56:37 +10:00
2024-06-26_00_FixUnmangedForRevokedUsersCollectionWithPermissions.sql [AC-2679] Adding a revoked, invited member with Can Manage access does not resolve unmanaged collections (#4397) 2024-07-02 11:19:59 -04:00
2024-06-27_00_AddOccupiedSeatsToProviderOrganizationOrganizationDetailsView.sql [AC-2805] Add AssignedSeats to ProviderOrganizationOrganizationDetailsView (#4446) 2024-07-03 10:33:37 -04:00
2024-07-01_00_DistributedCache.sql [PM-5518] Sql-backed IDistributedCache (#3791) 2024-07-03 12:48:23 -04:00
2024-07-01_00_EnsureMaxGBAndSeatsAreSet.sql [AC-2820] Updated org edit form scripts to dynamically update expected values (#4439) 2024-07-29 09:06:10 -04:00
2024-07-03_00_AddClientIdToProviderInvoiceItem.sql [AC-2804] Add client ID to provider client invoice report (#4458) 2024-07-05 10:12:03 -04:00
2024-07-03_00_DropUnusedCollectionRepositorySprocs.sql Drop unused CollectionRepository sprocs (#4455) 2024-07-05 09:43:31 +10:00
2024-07-09_00_CollectionCipherRemoveAccessAll.sql [AC-2730] Remove AccessAll - CollectionCipher (#4468) 2024-07-09 09:39:24 +10:00
2024-07-09_01_CipherAndCollectionFunctionsRemoveAccessAll.sql [AC-2731] Remove AccessAll - Collection and Cipher functions (#4469) 2024-07-09 13:50:40 +10:00
2024-07-10_00_MiscSprocsRemoveAccessAll.sql [AC-2733] Remove AccessAll - misc sprocs (#4477) 2024-07-11 08:00:28 +10:00
2024-07-11_00_BumpAccountRevisionDateRemoveAccessAll.sql [AC-2732] Remove AccessAll - Bump account revision date sprocs (#4490) 2024-07-11 08:01:39 +10:00
2024-07-16_00_FinalizeCollectionManagePermissionFinal.sql Drop v2 sprocs that added manage permission (#4463) 2024-07-18 08:17:25 +10:00
2024-07-16_01_DropCipherRepositoryV2Sprocs.sql chore: drop CipherRepository v2 sprocs (#4464) 2024-07-18 08:22:45 +10:00
2024-07-16_02_DropCollectionCipherSprocs.sql Drop CollectionCipher V2 sprocs (#4515) 2024-07-18 08:24:34 +10:00
2024-07-23_00_GroupMakeAccessAllOptional.sql [AC-2872] Make AccessAll optional in all group sprocs (#4551) 2024-07-24 11:10:12 +10:00
2024-07-24_00_OrganizationUserMakeAccessAllOptional.sql [AC-2877] Make OrganizationUser.AccessAll optional (#4521) 2024-07-24 14:29:45 +10:00
2024-08-02_00_UserReadByIdsWithCalculatedPremium.sql [AC-1698] Check if a user has 2FA enabled more efficiently (#4524) 2024-08-08 15:43:45 +01:00
2024-08-08_00_DropCipherAndCollectionV2Functions.sql [PM-10360] Drop user cipher and collection details v2 functions (#4588) 2024-08-09 07:33:45 +10:00
2024-08-09_00_OrganizationUser_UpdateDataForKeyRotation.sql Add OrganizationUser_UpdateDataForKeyRotation sproc (#4601) 2024-08-09 08:52:25 +10:00
2024-08-12_00_DropOrganizationFlexibleCollectionsColumn.sql [PM-10349] Drop Organization.FlexibleCollections column (#4583) 2024-08-12 08:28:13 +10:00
2024-08-19_00_UpdateCollectionManagementSettingsDbDefaults.sql [PM-10589] Update database defaults for collection management settings (#4623) 2024-08-21 13:18:21 +01:00
2024-08-26_00_FinalFlexibleCollectionsDataMigrations.sql [AC-1722] Deprecate "Edit/Delete Assigned Collections" custom permissions (#4604) 2024-09-02 11:04:55 +01:00
2024-09-02_00_DropGroupAccessAll_DefaultColumnValue.sql [PM-10368] Drop Group.AccessAll (#4700) 2024-09-02 15:01:32 +10:00
2024-09-02_01_DropGroupAccessAll_UpdateSprocs.sql [PM-10368] Drop Group.AccessAll (#4700) 2024-09-02 15:01:32 +10:00
2024-09-02_02_DropGroupAccessAll_DropColumn.sql [PM-10368] Drop Group.AccessAll (#4700) 2024-09-02 15:01:32 +10:00