1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-02 23:41:21 +01:00
bitwarden-server/util/SqliteMigrations/Migrations
Shane Melton 904b2fe205
[AC-1192] Create endpoints for new Device Approvals page (#2993)
* [AC-1192] Create new OrganizationAuthRequestsController.cs

* [AC-1192] Introduce OrganizationAdminAuthRequest model

* [AC-1192] Add GetManyPendingByOrganizationId method to AuthRequest repository

* [AC-1192] Add new list pending organization auth requests endpoint

* [AC-1192] Add new GetManyAdminApprovalsByManyIdsAsync method to the AuthRequestRepository

* [AC-1192] Make the response device identifier optional for admin approval requests

* [AC-1192] Add endpoint for bulk denying admin device auth requests

* [AC-1192] Add OrganizationUserId to PendingOrganizationAuthRequestResponseModel

* [AC-1192] Add UpdateAuthRequest endpoint and logic to OrganizationAuthRequestsController

* [AC-1192] Secure new endpoints behind TDE feature flag

* [AC-1192] Formatting

* [AC-1192] Add sql migration script

* [AC-1192] Add optional OrganizationId column to AuthRequest entity

- Rename migration script to match existing formatting
- Add new column
- Add migration scripts
- Update new sprocs to filter/join on OrganizationId
- Update old sprocs to include OrganizationId

* [AC-1192] Format migration scripts

* [AC-1192] Fix failing AuthRequest EF unit test

* [AC-1192] Make OrganizationId optional in updated AuthRequest sprocs for backwards compatability

* [AC-1192] Fix missing comma in migration file

* [AC-1192] Rename Key to EncryptedUserKey to be more descriptive

* [AC-1192] Move request validation into helper method to reduce repetition

* [AC-1192] Return UnauthorizedAccessException instead of NotFound when user is missing permission

* [AC-1192] Introduce FeatureUnavailableException

* [AC-1192] Introduce RequireFeatureAttribute

* [AC-1192] Utilize the new RequireFeatureAttribute in the OrganizationAuthRequestsController

* [AC-1192] Attempt to fix out of sync database migration by moving new OrganizationId column

* [AC-1192] More attempts to sync database migrations

* [AC-1192] Formatting

* [AC-1192] Remove unused reference to FeatureService

* [AC-1192] Change Id types from String to Guid

* [AC-1192] Add EncryptedString attribute

* [AC-1192] Remove redundant OrganizationId property

* [AC-1192] Switch to projection for OrganizationAdminAuthRequest mapping

- Add new OrganizationUser relationship to EF entity
- Replace AuthRequest DBContext config with new IEntityTypeConfiguration
- Add navigation property to AuthRequest entity configuration for OrganizationUser
- Update EF AuthRequestRepository to use new mapping and navigation properties

* [AC-1192] Remove OrganizationUser navigation property
2023-06-15 14:54:08 -07:00
..
20221212154007_initial.cs Add Sqlite as EF DB provider (#2487) 2022-12-14 08:28:51 -06:00
20221212154007_initial.Designer.cs Add Sqlite as EF DB provider (#2487) 2022-12-14 08:28:51 -06:00
20230106025949_AvatarColor.cs add sqlite migrations for avatar color (#2543) 2023-01-10 07:50:34 -05:00
20230106025949_AvatarColor.Designer.cs add sqlite migrations for avatar color (#2543) 2023-01-10 07:50:34 -05:00
20230106153919_SecretsManager.cs [SM-394] Secrets Manager (#2164) 2023-01-13 15:02:53 +01:00
20230106153919_SecretsManager.Designer.cs [SM-394] Secrets Manager (#2164) 2023-01-13 15:02:53 +01:00
20230112125615_ProviderAddProviderTypeBillingPhone.cs [EC-427] Add provider types (MSP/Reseller) to Provider table (#2518) 2023-01-23 16:08:05 +00:00
20230112125615_ProviderAddProviderTypeBillingPhone.Designer.cs [EC-427] Add provider types (MSP/Reseller) to Provider table (#2518) 2023-01-23 16:08:05 +00:00
20230113175436_Fix Navigation Properties.cs Remove Unused Auto Properties (#2580) 2023-01-13 14:24:58 -05:00
20230113175436_Fix Navigation Properties.Designer.cs Remove Unused Auto Properties (#2580) 2023-01-13 14:24:58 -05:00
20230118212950_RemoveDeviceUnknownVerification.cs [EC-400] Code clean up Device Verification (#2601) 2023-02-17 10:15:28 -03:00
20230118212950_RemoveDeviceUnknownVerification.Designer.cs [EC-400] Code clean up Device Verification (#2601) 2023-02-17 10:15:28 -03:00
20230120160257_OrganizationStatus.cs [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
20230120160257_OrganizationStatus.Designer.cs [AC-1081] Merge feature/billing-obfuscation (#2665) 2023-04-14 11:13:16 +01:00
20230124132220_KDFOptions.cs fix lint issues and sql csproj (#2627) 2023-01-25 12:44:32 -05:00
20230124132220_KDFOptions.Designer.cs [PS-2267] Add KdfMemory and KDFParallelism fields (#2583) 2023-01-25 07:56:54 -05:00
20230201175211_SecretsManagerOrganizationUser.cs Add EF migrations for SecretsManager flag (#2659) 2023-02-01 12:27:13 -06:00
20230201175211_SecretsManagerOrganizationUser.Designer.cs Add EF migrations for SecretsManager flag (#2659) 2023-02-01 12:27:13 -06:00
20230201192604_LastUserDates.cs add timestamps to user table for security related events (#2660) 2023-02-02 14:39:57 -05:00
20230201192604_LastUserDates.Designer.cs add timestamps to user table for security related events (#2660) 2023-02-02 14:39:57 -05:00
20230213133244_SecretsManagerEvent.cs [SM-389] Event log for service account (#2674) 2023-02-24 16:44:33 +01:00
20230213133244_SecretsManagerEvent.Designer.cs [SM-389] Event log for service account (#2674) 2023-02-24 16:44:33 +01:00
20230302121757_DomainClaiming.cs Add Sqlite Migration (#2760) 2023-03-02 08:50:27 -05:00
20230302121757_DomainClaiming.Designer.cs Add Sqlite Migration (#2760) 2023-03-02 08:50:27 -05:00
20230315121314_AuthRequestRemoveFingerprintPhrase.cs [PM-107] Remove fingerprint phase 2 (#2809) 2023-03-23 13:08:49 +00:00
20230315121314_AuthRequestRemoveFingerprintPhrase.Designer.cs [PM-107] Remove fingerprint phase 2 (#2809) 2023-03-23 13:08:49 +00:00
20230428130742_EFUpdate.cs Run ef_migrate.ps1 (#2892) 2023-05-01 09:32:06 -04:00
20230428130742_EFUpdate.Designer.cs Run ef_migrate.ps1 (#2892) 2023-05-01 09:32:06 -04:00
20230522030842_AddKeysToDevice.cs [PM-1380] Modify Device Table (#2937) 2023-06-09 21:36:12 -04:00
20230522030842_AddKeysToDevice.Designer.cs [PM-1380] Modify Device Table (#2937) 2023-06-09 21:36:12 -04:00
20230530114320_AddSecretsManagerBillingFieldToOrganization.cs [AC 1427]Add New Organisation Properties Update DB Objects and create migration (#2980) 2023-06-12 23:48:17 +01:00
20230530114320_AddSecretsManagerBillingFieldToOrganization.Designer.cs [AC 1427]Add New Organisation Properties Update DB Objects and create migration (#2980) 2023-06-12 23:48:17 +01:00
20230605182605_TdeAdminApproval.cs [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
20230605182605_TdeAdminApproval.Designer.cs [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00
DatabaseContextModelSnapshot.cs [AC-1192] Create endpoints for new Device Approvals page (#2993) 2023-06-15 14:54:08 -07:00