This patch fixes a bug in the migration code wherein the version number is not moved forward after a migration has been applied.
It also allows the migration to happen on databases opened "read-only", by re-opening them read-write, applying the migration, and then reopening read-only.
This patch fixes a bug in the migration code wherein the version number is not moved forward after a migration has been applied.
It also allows the migration to happen on databases opened "read-only", by re-opening them read-write, applying the migration, and then reopening read-only.