After the next release: drop Members.Role, make Boards.Key required #219
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #190's migration rule: the previous release can still run against the database for one release. Two columns are kept in a transitional shape for exactly that reason, and both can be finished once a release carrying #190's work has shipped. Not before: the release before it has to stay a valid rollback target.
Members.Role(#192). Nothing reads it exceptDatabaseInitializer.WarnAboutUnconfiguredAdminsAsync, the one-off log line naming members the old Members page had promoted, who are no longer admins of anything but the boards they were given. Remove that method with the column, and the "deliberately gone from the entity" note inData/Entities/Member.csandDbAllowlistService.Boards.KeyNOT NULL(#197,AddBoardKeys). It's nullable so v2.6.0, which inserts boards without a key, can still run.DatabaseInitializer.EnsureBoardKeysAsyncbackfills on every boot, so by then every row has one. It can stay as a guard or go, whichever the migration makes simpler.Both are one migration, and
docs/data.md/docs/auth.mdlose the sentences that explain the transition. Test against a copy of a database that went through the release in between, not a fresh one: a fresh database never had a null key.