1
0
mirror of https://github.com/bitwarden/server synced 2026-02-26 17:33:40 +00:00
Files
server/util/Migrator
Thomas Rittson e3c392badb [PM-32131] Add UseMyItems organization ability (#7014)
Purpose: UseMyItems is a new organization ability / plan flag
which is automatically enabled where UsePolicies is enabled,
but can be selectively disabled to disable My Items creation
when the Organization Data Ownership policy is turned on.

- new organization table column with all sprocs and views updated
- data migration to enable the feature for all organizations that already use policies (replicating existing behaviour)
- data and api models updated
- added to organization license file so it can be preserved in self-hosted instances
- note that we don't have a plan feature defined for this yet, so it is set based on UsePolicies to match the migration logic. Billing Team have a ticket to add this
2026-02-24 19:52:28 -07:00
..

Bitwarden Database Migrator

A class library leveraged by utilities and hosted applications to perform SQL database migrations. A MSSQL migrator exists here as the default use case.

In production environments the Migrator is typically executed during application startup or as part of CI/CD pipelines to ensure database schemas are up-to-date before application deployment.

See the documentation on creating migrations for how to utilize the files seen here.