github DuendeSoftware/products storage-2.0.0-preview.7
Duende Storage 2.0.0-preview.7

latest release: cli-0.0.6
pre-releaseone hour ago

This is a preview release of Duende Storage 2.0, and the Storage version IdentityServer 8.1.0-preview.7 builds on. It adds a schema migration and better tools to check your database.

Before you upgrade

Migrate your database. This release changes the Storage schema. Migrate every storage instance before the new version starts serving traffic:

duende storage migrate --provider <provider> --connection-string <connection-string>

You can also call IStorageInstanceSchema.MigrateAsync in code. Run it from one place, such as a deployment step, not from every app instance at startup.

Earlier previews didn't enforce the relationships between stored records, so a database can contain links to records that were deleted. The migration removes those links. Nothing else is deleted.

What's new

  • Check a database before you deploy. duende storage verify checks that a database's schema is complete and correct, without changing anything. Use it in a deployment pipeline or a health check.
  • Migrations check their result. A migration, or MigrateAsync on a schema that is already current, now also checks the schema, and fails if something is missing or different. An app that migrates at startup won't start on a schema that has drifted.
  • A clear error when you forget to migrate. If the Storage tables don't exist, the error tells you to run duende storage migrate, instead of a raw database error about a missing table.

Breaking changes

  • Extensible attributes are removed. The Duende.Storage.EntityAttributeValue namespace is no longer part of Duende Storage.

Full Changelog: storage-2.0.0-preview.6...storage-2.0.0-preview.7

Don't miss a new products release

NewReleases is sending notifications on new releases.