Config/Migrations: default enabled/disabled confusion |
Good day,
I am doing an upgrade from 4.0.0-alpha2 to 4.0.2, and I am honestly confused here: app/Config/Migrations.php: 4.0.0-alpha2: Code: /* 4.0.2: Code: /* First, release version is doing the absolute opposite than before. And what confuses me even more, 4.0.2 has this in the description: "enabled by default for security reasons" vs. "enable whenever you intend to do a schema migration and disable it back when you're done" Could somebody please explain the best course of actions? So it should be enabled by default, do whatever migration by default, and then disable it and keep it disabled unless doing migration? Thanks!
Lonnie changed the default value to "true" in this commit Migrations should be enabled by default to remove a frustration of getting started.
I think the comment in the configuration file should be improved for more clarity, because it is confusing!
Yes, looks like I missed changing the comment out. But things should be expected to change from a beta to a final release.
![]()
Yes it's totally fine if things change. For my part, what I find confusing is the part where it says "enabled by default for security reasons". It should probably be something more like "enabled by default for your convenience".
Thanks for the clarification! So in the end, it should be kept disabled most of the time, except when actually doing DB migrations.
|
Welcome Guest, Not a member yet? Register Sign In |