You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(In v4.0.0rc3), method MigrationRunner->regress() has a side effect: it resets variable $namespace to null, which causes subsequent calls to MigrationRunner not to operate on the intended namespace:
308 // Get all migrations
309 $this->namespace = null;
Can be triggered like this:
Have a valid Migration file in app/Database/Migration
create a database test case (extend CIDatabaseTestCase), specify $namespace = 'App' to use App/Database/Migrations; set $refresh = true
run test case twice.
the second time around, MigrationRunner->regress() will be called to roll back migrations from first run, invalidating $namespace setting, causing subsequent latest() call not to be namespaced, which leads it to include tests/_support/DatabaseTestMigrations/Database/Migrations
The text was updated successfully, but these errors were encountered:
(In v4.0.0rc3), method MigrationRunner->regress() has a side effect: it resets variable $namespace to null, which causes subsequent calls to MigrationRunner not to operate on the intended namespace:
Can be triggered like this:
The text was updated successfully, but these errors were encountered: