Welcome Guest, Not a member yet? Register   Sign In
Config/Migrations: default enabled/disabled confusion
#1

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:
    /*
    |--------------------------------------------------------------------------
    | Enable/Disable Migrations
    |--------------------------------------------------------------------------
    |
    | Migrations are disabled by default for security reasons.
    | You should enable migrations whenever you intend to do a schema migration
    | and disable it back when you're done.
    |
    */
    public $enabled = false;


4.0.2:
Code:
    /*
    |--------------------------------------------------------------------------
    | Enable/Disable Migrations
    |--------------------------------------------------------------------------
    |
    | Migrations are enabled by default for security reasons.
    | You should enable migrations whenever you intend to do a schema migration
    | and disable it back when you're done.
    |
    */
    public $enabled = true;

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!
Reply


Messages In This Thread
Config/Migrations: default enabled/disabled confusion - by bivanbi - 04-09-2020, 10:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB