1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00
bitwarden-server/util/PostgresMigrations/Migrations
Rui Tomé b3e5076128
[AC-1978] Flexible collections: EF data migrations for deprecated permissions (#3969)
* [AC-1682] Added MySql migration and script

(cherry picked from commit d367f6de6b)

* [AC-1682] Added Postgres migration and script

(cherry picked from commit 9bde1604da)

* [AC-1682] Added Sqlite migration and script

(cherry picked from commit 262887f9c3)

* [AC-1682] dotnet format

(cherry picked from commit 00eea0621c)

* [AC-1682] Fixed Sqlite query

(cherry picked from commit 26f5bf8afd)

* [AC-1682] Drop temp tables if they exist when starting the scripts

(cherry picked from commit c20912f95c)

* [AC-1682] Removed MySql transaction from script because EF migration already wraps it under its own transaction

(cherry picked from commit 7b54d78d67)

* [AC-1682] Setting FlexibleCollections = 1 only for Orgs that had data migrated in previous steps

(cherry picked from commit 28bba94d81)

* [AC-1682] Updated queries to check for OrganizationId

(cherry picked from commit a957530d5e)

* [AC-1682] Fixed MySql script

(cherry picked from commit deee483ab7)

* [AC-1682] Fixed Postgres query

(cherry picked from commit c3ca9ec3c8)

* [AC-1682] Fix Sqlite query

(cherry picked from commit fada0a81bf)

* [AC-1682] Reverted scripts back to enabling Flexible Collections to all existing Orgs

(cherry picked from commit bd3b21b969)

* [AC-1682] Removed dropping temporary table from scripts

(cherry picked from commit eb7794d592)

* [AC-1682] Removed other temp table drops

(cherry picked from commit 26768b7bf8)

* [AC-1978] Fix issue that allows the web app to have the user type Manager available

(cherry picked from commit 2890f78870)

* [AC-1682] Bump dates on migration scripts

---------

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2024-04-26 14:11:29 +01:00
..
20210708191531_Init.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20210708191531_Init.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20210709092227_RemoveProviderOrganizationProviderUser.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20210709092227_RemoveProviderOrganizationProviderUser.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20210716141748_UserForcePasswordReset.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20210716141748_UserForcePasswordReset.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20210920201829_AddMaxAutoscaleSeatsToOrganization.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20210920201829_AddMaxAutoscaleSeatsToOrganization.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20211011145128_SplitManageCollectionsPermissions2.cs Remove EF migration scripts (#2550) 2023-01-10 13:46:19 -05:00
20211011145128_SplitManageCollectionsPermissions2.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20211021204521_SetMaxAutoscaleSeatsToCurrentSeatCount.cs Remove EF migration scripts (#2550) 2023-01-10 13:46:19 -05:00
20211021204521_SetMaxAutoscaleSeatsToCurrentSeatCount.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20211108041547_KeyConnector.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20211108041547_KeyConnector.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20211108225011_OrganizationSponsorship.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20211108225011_OrganizationSponsorship.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20211115142623_KeyConnectorFlag.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20211115142623_KeyConnectorFlag.Designer.cs Split out repositories to Infrastructure.Dapper / EntityFramework (#1759) 2022-01-11 10:40:51 +01:00
20220121092321_RemoveU2F.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20220121092321_RemoveU2F.Designer.cs Remove the u2f lib (#1820) 2022-01-24 12:14:04 +01:00
20220301211818_FailedLoginCaptcha.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20220301211818_FailedLoginCaptcha.Designer.cs [Captcha] Implement failed logins ceiling (#1870) 2022-03-02 15:45:00 -06:00
20220322183505_SelfHostF4E.cs Bitwarden Unified Self-Host project (#2410) 2022-11-18 14:39:01 -05:00
20220322183505_SelfHostF4E.Designer.cs Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
20220411190525_SponsorshipBulkActions.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20220411190525_SponsorshipBulkActions.Designer.cs Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
20220420171153_AddInstallationIdToEvents.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20220420171153_AddInstallationIdToEvents.Designer.cs Feature/self hosted families for enterprise (#1991) 2022-05-10 16:12:09 -05:00
20220524170740_DeviceUnknownVerification.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20220524170740_DeviceUnknownVerification.Designer.cs [PS-589] Fix emergency contact takeover device verification and endpoints for its settings (#2016) 2022-06-06 14:52:50 -03:00
20220707162231_UseScimFlag.cs Run formatting (#2230) 2022-08-29 16:06:55 -04:00
20220707162231_UseScimFlag.Designer.cs [EC-261] SCIM (#2105) 2022-07-14 15:58:48 -04:00
20220830163921_PasswordlessAuthRequests.cs [SG-167] Implement Passwordless Authentication via Notifications (#2276) 2022-09-26 13:21:13 -04:00
20220830163921_PasswordlessAuthRequests.Designer.cs [SG-167] Implement Passwordless Authentication via Notifications (#2276) 2022-09-26 13:21:13 -04:00
20220927142152_EventsSystemUser.cs [EC-449] Event log user for SCIM events (#2306) 2022-11-09 12:13:29 +00:00
20220927142152_EventsSystemUser.Designer.cs [EC-449] Event log user for SCIM events (#2306) 2022-11-09 12:13:29 +00:00
20221025033204_PasswordlessAuthRequestAddApprovedColumn.cs [SG-763] Store the fact that a Passwordless request was denied in the AuthRequest table (#2363) 2022-10-25 17:14:48 -04:00
20221025033204_PasswordlessAuthRequestAddApprovedColumn.Designer.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221114192912_OrganizationDomainClaim.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221114192912_OrganizationDomainClaim.Designer.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221115034053_AvatarColor.cs [SG-58] Avatar color selector (#2330) 2023-01-01 11:28:59 -05:00
20221115034053_AvatarColor.Designer.cs [SG-58] Avatar color selector (#2330) 2023-01-01 11:28:59 -05:00
20221116102326_UseCustomPermissionsFlag.cs [EC-343] Gate custom permissions behind enterprise plan (#2352) 2022-12-06 09:50:08 +00:00
20221116102326_UseCustomPermissionsFlag.Designer.cs [EC-343] Gate custom permissions behind enterprise plan (#2352) 2022-12-06 09:50:08 +00:00
20221129032517_OrganizationDomainClaimRenameNextRunCount.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221129032517_OrganizationDomainClaimRenameNextRunCount.Designer.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221209020447_EventsDomainName.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221209020447_EventsDomainName.Designer.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221209194623_OrganizationDomainLastCheckedDate.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221209194623_OrganizationDomainLastCheckedDate.Designer.cs [SG-147] Organization Domain Claiming Feature (#2704) 2023-02-15 14:26:41 -05:00
20221227100237_ProviderAddProviderTypeBillingPhone.cs [EC-427] Add provider types (MSP/Reseller) to Provider table (#2518) 2023-01-23 16:08:05 +00:00
20221227100237_ProviderAddProviderTypeBillingPhone.Designer.cs [EC-427] Add provider types (MSP/Reseller) to Provider table (#2518) 2023-01-23 16:08:05 +00:00
20230106153838_SecretsManager.cs [SM-394] Secrets Manager (#2164) 2023-01-13 15:02:53 +01:00
20230106153838_SecretsManager.Designer.cs [SM-394] Secrets Manager (#2164) 2023-01-13 15:02:53 +01:00
20230113175441_Fix Navigation Properties.cs Remove Unused Auto Properties (#2580) 2023-01-13 14:24:58 -05:00
20230113175441_Fix Navigation Properties.Designer.cs Remove Unused Auto Properties (#2580) 2023-01-13 14:24:58 -05:00
20230118224536_RemoveDeviceUnknownVerification.cs [EC-400] Code clean up Device Verification (#2601) 2023-02-17 10:15:28 -03:00
20230118224536_RemoveDeviceUnknownVerification.Designer.cs [EC-400] Code clean up Device Verification (#2601) 2023-02-17 10:15:28 -03:00
20230120160253_OrganizationStatus.cs [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
20230120160253_OrganizationStatus.Designer.cs [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
20230124132215_KDFOptions.cs fix lint issues and sql csproj (#2627) 2023-01-25 12:44:32 -05:00
20230124132215_KDFOptions.Designer.cs [PS-2267] Add KdfMemory and KDFParallelism fields (#2583) 2023-01-25 07:56:54 -05:00
20230201175207_SecretsManagerOrganizationUser.cs Add EF migrations for SecretsManager flag (#2659) 2023-02-01 12:27:13 -06:00
20230201175207_SecretsManagerOrganizationUser.Designer.cs Add EF migrations for SecretsManager flag (#2659) 2023-02-01 12:27:13 -06:00
20230201192558_LastUserDates.cs add timestamps to user table for security related events (#2660) 2023-02-02 14:39:57 -05:00
20230201192558_LastUserDates.Designer.cs add timestamps to user table for security related events (#2660) 2023-02-02 14:39:57 -05:00
20230208210621_CipherKeyUpdate.cs Individual Vault Item Encryption Feature (#3256) 2023-09-28 08:45:13 -04:00
20230208210621_CipherKeyUpdate.Designer.cs Individual Vault Item Encryption Feature (#3256) 2023-09-28 08:45:13 -04:00
20230213133239_SecretsManagerEvent.cs [SM-389] Event log for service account (#2674) 2023-02-24 16:44:33 +01:00
20230213133239_SecretsManagerEvent.Designer.cs [SM-389] Event log for service account (#2674) 2023-02-24 16:44:33 +01:00
20230315121250_AuthRequestRemoveFingerprintPhrase.cs [PM-107] Remove fingerprint phase 2 (#2809) 2023-03-23 13:08:49 +00:00
20230315121250_AuthRequestRemoveFingerprintPhrase.Designer.cs [PM-107] Remove fingerprint phase 2 (#2809) 2023-03-23 13:08:49 +00:00
20230428130737_EFUpdate.cs Run ef_migrate.ps1 (#2892) 2023-05-01 09:32:06 -04:00
20230428130737_EFUpdate.Designer.cs Run ef_migrate.ps1 (#2892) 2023-05-01 09:32:06 -04:00
20230522030830_AddKeysToDevice.cs [PM-1380] Modify Device Table (#2937) 2023-06-09 21:36:12 -04:00
20230522030830_AddKeysToDevice.Designer.cs [PM-1380] Modify Device Table (#2937) 2023-06-09 21:36:12 -04:00
20230523223526_ClientSecretHash.cs [SM-678] ClientSecret migration (#2943) 2023-06-21 13:16:06 -05:00
20230523223526_ClientSecretHash.Designer.cs [SM-678] ClientSecret migration (#2943) 2023-06-21 13:16:06 -05:00
20230530114251_AddSecretsManagerBillingFieldToOrganization.cs [AC 1427]Add New Organisation Properties Update DB Objects and create migration (#2980) 2023-06-12 23:48:17 +01:00
20230530114251_AddSecretsManagerBillingFieldToOrganization.Designer.cs [AC 1427]Add New Organisation Properties Update DB Objects and create migration (#2980) 2023-06-12 23:48:17 +01:00
20230605182609_TdeAdminApproval.cs [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
20230605182609_TdeAdminApproval.Designer.cs [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
20230720200747_2023-07-11_00_CollectionManagePermission.sql.cs [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
20230720200747_2023-07-11_00_CollectionManagePermission.sql.Designer.cs [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
20230726191555_SecretsManagerBetaColumn.cs SM-802: Add SecretsManagerBeta Column Migration (#3065) 2023-07-26 15:55:28 -04:00
20230726191555_SecretsManagerBetaColumn.Designer.cs SM-802: Add SecretsManagerBeta Column Migration (#3065) 2023-07-26 15:55:28 -04:00
20230807181653_LimitCollectionCreateDelete.cs [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
20230807181653_LimitCollectionCreateDelete.Designer.cs [AC-1373] Flexible Collections (#3245) 2023-11-01 09:30:52 +00:00
20230824202447_ACCESSPOLICY_ADD_DELETE_CASCADE.cs [SM-755] Add EF Secrets Manager cleanup on deletes (#3228) 2023-09-21 17:22:08 -05:00
20230824202447_ACCESSPOLICY_ADD_DELETE_CASCADE.Designer.cs [SM-755] Add EF Secrets Manager cleanup on deletes (#3228) 2023-09-21 17:22:08 -05:00
20231025225548_AdminCollectionItemAccess.cs [AC-1122] Add AllowAdminAccessToAllCollectionItems setting to Organizations (#3379) 2023-11-27 11:44:07 -08:00
20231025225548_AdminCollectionItemAccess.Designer.cs [AC-1122] Add AllowAdminAccessToAllCollectionItems setting to Organizations (#3379) 2023-11-27 11:44:07 -08:00
20231213032041_WebAuthnLoginCredentials.cs added webauthncredential ef migrations (#3555) 2023-12-13 07:03:42 -08:00
20231213032041_WebAuthnLoginCredentials.Designer.cs added webauthncredential ef migrations (#3555) 2023-12-13 07:03:42 -08:00
20231214162542_GrantIdWithIndexes.cs [PM-5294][deps]: Update Duende.IdentityServer to v6.3.7 (#3499) 2023-12-28 15:04:45 -05:00
20231214162542_GrantIdWithIndexes.Designer.cs [PM-5294][deps]: Update Duende.IdentityServer to v6.3.7 (#3499) 2023-12-28 15:04:45 -05:00
20231229202259_AddToolsTableIndexes.cs [BEEEP] [SM-1060] Add missing tools table indexes to EF config (#3626) 2024-01-09 09:46:45 -06:00
20231229202259_AddToolsTableIndexes.Designer.cs [BEEEP] [SM-1060] Add missing tools table indexes to EF config (#3626) 2024-01-09 09:46:45 -06:00
20240104162650_AddCipherIdToSend.cs [PM-221] Adding CipherId to the Send table, create/update sprocs, and added mi… (#3646) 2024-03-04 19:31:33 -05:00
20240104162650_AddCipherIdToSend.Designer.cs [PM-221] Adding CipherId to the Send table, create/update sprocs, and added mi… (#3646) 2024-03-04 19:31:33 -05:00
20240109215338_AddTableIndexes.cs [BEEEP][SM-1062] Add missing table indexes to EF config (#3628) 2024-01-10 12:03:16 -06:00
20240109215338_AddTableIndexes.Designer.cs [BEEEP][SM-1062] Add missing table indexes to EF config (#3628) 2024-01-10 12:03:16 -06:00
20240111034857_OrganizationFlexibleCollectionsColumn.cs [AC-2025] Add Organization.FlexibleCollections to database and sprocs (#3642) 2024-01-11 13:25:57 +10:00
20240111034857_OrganizationFlexibleCollectionsColumn.Designer.cs [AC-2025] Add Organization.FlexibleCollections to database and sprocs (#3642) 2024-01-11 13:25:57 +10:00
20240112180915_AddAuthTableIndexes.cs [BEEEP] [SM-1059] Add missing auth table indexes to EF config (#3625) 2024-01-17 10:42:43 -06:00
20240112180915_AddAuthTableIndexes.Designer.cs [BEEEP] [SM-1059] Add missing auth table indexes to EF config (#3625) 2024-01-17 10:42:43 -06:00
20240131215356_RemoveSMBetaFromOrganization.cs SM-1012: Removing SM Beta (Phase 2) (#3663) 2024-02-05 15:51:31 -05:00
20240131215356_RemoveSMBetaFromOrganization.Designer.cs SM-1012: Removing SM Beta (Phase 2) (#3663) 2024-02-05 15:51:31 -05:00
20240216170332_AddSecretAccessPolicies.cs [SM-713] Add database support for secret access policies (#3681) 2024-02-22 10:06:39 -06:00
20240216170332_AddSecretAccessPolicies.Designer.cs [SM-713] Add database support for secret access policies (#3681) 2024-02-22 10:06:39 -06:00
20240308141737_SetupProviderBilling.cs [AC-1900] Update Vault DB to support provider billing (#3875) 2024-03-21 11:15:49 -04:00
20240308141737_SetupProviderBilling.Designer.cs [AC-1900] Update Vault DB to support provider billing (#3875) 2024-03-21 11:15:49 -04:00
20240425111446_EnableOrgsCollectionEnhancements.cs [AC-1978] Flexible collections: EF data migrations for deprecated permissions (#3969) 2024-04-26 14:11:29 +01:00
20240425111446_EnableOrgsCollectionEnhancements.Designer.cs [AC-1978] Flexible collections: EF data migrations for deprecated permissions (#3969) 2024-04-26 14:11:29 +01:00
DatabaseContextModelSnapshot.cs [AC-1900] Update Vault DB to support provider billing (#3875) 2024-03-21 11:15:49 -04:00