Rui Tome
e027bb4956
Revert "Merge branch 'main' into ac/ac-1682/ef-migrations"
...
This reverts commit f98646a722 , reversing
changes made to 7dfd2821f1 .
2024-04-03 15:52:54 +01:00
Rui Tome
bd3b21b969
[AC-1682] Reverted scripts back to enabling Flexible Collections to all existing Orgs
2024-04-03 11:25:03 +01:00
Rui Tome
f98646a722
Merge branch 'main' into ac/ac-1682/ef-migrations
2024-04-03 11:08:06 +01:00
Rui Tomé
7dfd2821f1
Merge branch 'ac/ac-2323/sql-automatic-data-migrations' into ac/ac-1682/ef-migrations
2024-04-01 10:23:27 +01:00
Rui Tome
fada0a81bf
[AC-1682] Fix Sqlite query
2024-03-29 14:53:40 +00:00
Rui Tome
c3ca9ec3c8
[AC-1682] Fixed Postgres query
2024-03-29 14:25:41 +00:00
Rui Tome
deee483ab7
[AC-1682] Fixed MySql script
2024-03-29 14:17:15 +00:00
Rui Tome
a957530d5e
[AC-1682] Updated queries to check for OrganizationId
2024-03-29 14:10:57 +00:00
Rui Tome
28bba94d81
[AC-1682] Setting FlexibleCollections = 1 only for Orgs that had data migrated in previous steps
2024-03-29 12:13:04 +00:00
Rui Tome
7b54d78d67
[AC-1682] Removed MySql transaction from script because EF migration already wraps it under its own transaction
2024-03-29 12:03:29 +00:00
Rui Tome
c20912f95c
[AC-1682] Drop temp tables if they exist when starting the scripts
2024-03-29 12:00:24 +00:00
Rui Tome
26f5bf8afd
[AC-1682] Fixed Sqlite query
2024-03-28 14:50:02 +00:00
Matt Bishop
2790687dc2
[PM-6938] Allow certain database operations to be skipped ( #3914 )
...
* Centralize database migration logic
* Clean up unused usings
* Prizatize
* Remove verbose flag from Docker invocation
* Allow certain database operations to be skipped
* Readonly
2024-03-27 11:20:54 -04:00
Rui Tome
f131004c55
[AC-2323] Fixed typo
2024-03-25 21:39:52 +00:00
Rui Tome
73d455b93d
[AC-2323] Fix script comment
2024-03-25 21:39:00 +00:00
Rui Tome
71f574f9c4
Merge branch 'ac/ac-2323/sql-automatic-data-migrations' into ac/ac-1682/ef-migrations
2024-03-25 21:28:32 +00:00
Rui Tome
1de0f32f6e
[AC-2323] Added script to migrate all sql organizations to use flexible collections
2024-03-25 16:16:56 +00:00
Rui Tome
00eea0621c
[AC-1682] dotnet format
2024-03-25 15:28:46 +00:00
Rui Tome
262887f9c3
[AC-1682] Added Sqlite migration and script
2024-03-25 15:22:17 +00:00
Michał Chęciński
fd71ed8584
[DEVOPS-1218] Add dryrun mode to MsSqlMigratorUtility ( #3795 )
...
* Add dryrun mode to MsSqlMigratorUtility
* Fix
* Update util/MsSqlMigratorUtility/Program.cs
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
* Update util/MsSqlMigratorUtility/Program.cs
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
* Update util/MsSqlMigratorUtility/Program.cs
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
* Fixes
* Fix using
* Format
* Update util/MsSqlMigratorUtility/Program.cs
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
* Fixes
* Fix after merge
* Fix
* Fix
* Remove unnecessary param name
---------
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
2024-03-25 10:22:02 -04:00
Rui Tome
9bde1604da
[AC-1682] Added Postgres migration and script
2024-03-25 13:59:28 +00:00
Shane Melton
6a0f6e1dac
[PM-2383] Bulk collection assignment ( #3919 )
...
* [PM-2383] Add bulk add/remove collection cipher repository methods
* [PM-2383] Add additional authorization helpers for CiphersControlle
* [PM-2383] Add /bulk-collections endpoint to CiphersController.cs
* [PM-2383] Add EF implementation for new CollectionCipherRepository methods
* [PM-2383] Ensure V1 logic only applies when the flag is enabled for new bulk functionality
2024-03-22 13:16:34 -07:00
Rui Tome
d367f6de6b
[AC-1682] Added MySql migration and script
2024-03-22 15:58:07 +00:00
Rui Tome
d6f7d94b22
[AC-1682] Removed Sqlite migrations and scripts
2024-03-22 15:46:31 +00:00
Rui Tome
bb00cb4e59
[AC-1682] Removed Postgres scripts and migrations
2024-03-22 15:45:59 +00:00
Rui Tome
5383cd16fb
[AC-1682] Removed MySql scripts and migrations
2024-03-22 15:41:06 +00:00
Matt Bishop
743465273c
[PM-6909] Centralize database migration logic ( #3910 )
...
* Centralize database migration logic
* Clean up unused usings
* Prizatize
* Remove verbose flag from Docker invocation
* Allow argument passthrough still
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com >
* Allow DI logger
---------
Co-authored-by: Michał Chęciński <mchecinski@bitwarden.com >
2024-03-22 10:54:13 -04:00
Rui Tome
6c21d4e96a
Merge branch 'main' into ac/ac-1682/ef-migrations
2024-03-22 11:53:01 +00:00
Alex Morask
9f7e05869e
[AC-1900] Update Vault DB to support provider billing ( #3875 )
...
* Add Gateway columns to Provider table
* Add ProviderId column to Transaction table
* Create ProviderPlan table
* Matt's feedback
* Rui's feedback
* Fixed Gateway parameter on Provider
2024-03-21 11:15:49 -04:00
Daniel James Smith
2b440ed840
Update mssql to CU12 to support linux kernel 6.7.x ( #3904 )
...
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com >
2024-03-15 13:02:31 -06:00
Tom
997af0f6ab
[PM-221] Adding CipherId to the Send table, create/update sprocs, and added mi… ( #3646 )
...
* Adding CipherId to the Send table, create/update sprocs, and added migrations
* changing migrator script to drop create sprocs
* fixing double brackets
* Revert "changing migrator script to drop create sprocs"
This reverts commit 2d5171e7e5 .
* Remove comment I nitpicked
* Script best practices
* Fix typo
* Try recreate again
* Fix missing output
* Revert "Try recreate again"
This reverts commit 38257ebeaa .
---------
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
Co-authored-by: federicom09 <fmonesiglio@bitwarden.com >
2024-03-04 19:31:33 -05:00
Rui Tome
0f3aa5d1ae
Merge branch 'main' into ac/ac-1682/ef-migrations
2024-02-26 13:32:30 +00:00
Thomas Avery
1499d1e2c6
[SM-713] Add database support for secret access policies ( #3681 )
...
* mssql add column and migration
* Add secret access policies to EF models and config
* Clear new access policies on service account delete
* Add SM cleanup code on delete
* Fix EF org user bulk delete
* Run EF migrations
2024-02-22 10:06:39 -06:00
renovate[bot]
3a6b2d85d3
[deps] DevOps: Update CommandDotNet to v7.0.3 ( #3824 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-20 15:59:55 -05:00
renovate[bot]
4e6360cc4f
[deps] DbOps: Update EntityFrameworkCore ( #3823 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-20 09:42:30 -05:00
Rui Tome
2f434b34f5
[AC-1682] Remove unnecessary migration scripts
2024-02-16 14:44:35 +00:00
Rui Tome
a24465b137
[AC-1682] Bumped up dates on EF migrations
2024-02-16 14:43:12 +00:00
Rui Tome
6d1ead5b61
[AC-1682] Bumped up date on migration scripts
2024-02-16 13:09:58 +00:00
Rui Tome
f7f692cf08
[AC-1682] Update RevisionDate in Group table
2024-02-16 12:51:13 +00:00
Rui Tome
39e336eddd
Merge branch 'main' into ac/ac-1682/ef-migrations
...
# Conflicts:
# src/Sql/dbo/Stored Procedures/Organization_EnableCollectionEnhancements.sql
# util/SqliteMigrations/SqliteMigrations.csproj
2024-02-16 12:47:39 +00:00
rkac-bw
744d21ec5e
[PM-4767] Update Grant_Save procedure ( #3641 )
...
* modify grant_save sql script to migration and Auth SQL scripts to not use merge
* Update formatting for sql files
* Fix formatting for sql files
* Format using Prettier
* Rename 2024-01-03_00_FixGrantSave.sql to 2024-02-12_00_FixGrantSave.sql
---------
Co-authored-by: Matt Bishop <mbishop@bitwarden.com >
2024-02-14 09:48:58 -07:00
Alex Morask
97018e2501
Upgrade logging packages for .NET 8 ( #3798 )
2024-02-13 14:34:55 -05:00
github-actions[bot]
ae4fcfc204
Move DbScripts_finalization to DbScripts ( #3675 )
...
Co-authored-by: bitwarden-devops-bot <106330231+bitwarden-devops-bot@users.noreply.github.com >
Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com >
2024-02-12 14:00:09 -05:00
renovate[bot]
615d6a1cd0
[deps] DbOps: Update dbup-sqlserver to v5.0.40 ( #3708 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-09 12:08:20 -05:00
Shane Melton
636f716d62
[AC-1124] Restrict admins from accessing items in Collections tab ( #3676 )
...
* [AC-1124] Add GetManyUnassignedOrganizationDetailsByOrganizationIdAsync to the CipherRepository
* [AC-1124] Introduce IOrganizationCiphersQuery.cs to replace some CipherService queries
* [AC-1124] Add additional CipherDetails model that includes CollectionIds
* [AC-1124] Update CiphersController and response models
- Add new endpoint for assigned ciphers
- Update existing endpoint to only return all ciphers when feature flag is enabled the user has access
* [AC-1124] Add migration script
* [AC-1124] Add follow up ticket for Todos
* [AC-1124] Fix feature service usage after merge with main
* [AC-1124] Optimize unassigned ciphers query
* [AC-1124] Update migration script date
* [AC-1124] Update migration script date
* [AC-1124] Formatting
2024-02-08 14:07:58 -08:00
Colton Hurst
7cbe888b82
SM-1012: Removing SM Beta (Phase 2) ( #3663 )
...
* SM-1012: Phase 2, removing SM Beta from the server (but not db)
* SM-1012: Add migration for RemoveSMBetaFromOrganization
* SM-1012: Dotnet format
* SM-1012: Undo RemoveSMBetaFromOrganization EF migration
* SM-1012: Redo RemoveSMBetaFromOrganization EF migration
* SM-1012: Ran dotnet format
2024-02-05 15:51:31 -05:00
Matt Bishop
ae1fdb0992
[PM-5052] Upgrade to .NET 8 ( #3461 )
...
* Upgrade to .NET 8
* Linting
* Clean up old JSON deserialization code
* More .NET 8-oriented linting
* Light feedback
* Get rid of old test we don't know the root issue for
* Fix a new test
* Remove now-unnecessary Renovate constraint
* Use Any()
* Somehow a 6.0 tooling config we don't need snuck back in
* Space out properties that always change per release
* Bump a few core packages since the last update
2024-02-05 13:03:42 -05:00
Matt Bishop
472b1f8d44
[PM-5313] Upgrade to SQL Server 2022 ( #3580 )
...
* Upgrade to SQL Server 2022
* CU11
2024-02-02 09:35:00 -05:00
Matt Bishop
b20b8099a7
[PM-5314] Upgrade MSSQL cumulative update ( #3548 )
...
* Upgrade MSSQL cumulative update
* Go to 24
2024-02-02 08:57:19 -05:00
Rui Tomé
7bf17a20f4
[AC-2104] Add flexible collections properties to provider organizations sync response ( #3717 )
2024-01-29 14:04:45 -06:00