Closed franzliedke closed 4 years ago
Quoting @tobscure from https://github.com/flarum/core/pull/1214#issuecomment-343702662:
Bundled extension will come before stable release.
So that will use the existing data if available, otherwise the migration script will remove it.
A few things:
After some discussion in our last team meeting, I don't think we're willing to bundle (and support) more extensions officially until stable.
As for migration: since we're in beta, I think it would be fine if user-bio just offered a one-time script or snippet to execute once before we remove the field. We can even make that an optional step in our upgrade instructions for users of that extension.
Could we add a migration to remove the column IF there's no data in it? That way we could not have it on fresh installations without hacky workarounds
No. The state of all databases should be the same after running a certain migration. I could live with migrations that have checks for different states coming into the migration, but the results should be deterministic.
Fair. So we just have user bio rename the field? I'll open an issue on their end, but us actually removing the column should be delayed until the stable release to give users time to migrate user bio.
Either that (a migration that creates a new field and prefills it from the old field if that exists), or a one-time migration scripts for users with old data. I'll leave that choice to them.
us actually removing the column should be delayed until the stable release to give users time to migrate user bio.
Yup, see issue description. :wink:
Why don't we just remove the migration from where it is created instead of just dropping it? Old forums will still have the column and new forums won't unless the install the extension. I don't see any benefit to dropped it outright.
That is a much, much better idea than this hackery I've come up with
The database column should be removed in time for the stable release. This gives people a grace period to switch to an extension as replacement.
See #1214.