Skip to content
  • Yves Senn's avatar
    5c449553
    bring back `db:test:prepare`. · 5c449553
    Yves Senn authored
    This reverts deprecations added in #13528.
    The task is brought back for two reasons:
      1. Give plugins a way to hook into the test database initialization process
      2. Give the user a way to force a test database synchronization
    
    While `test:prepare` is still a dependency of every test task, `db:test:prepare`
    no longer hooks into it. This means that `test:prepare` runs before the schema
    is synchronized. Plugins, which insert data can now hook into `db:test:prepare`.
    
    The automatic schema maintenance can't detect when a migration is rolled-back,
    modified and reapplied. In this case the user has to fall back to `db:test:prepare`
    to force the synchronization to happen.
    5c449553
    bring back `db:test:prepare`.
    Yves Senn authored
    This reverts deprecations added in #13528.
    The task is brought back for two reasons:
      1. Give plugins a way to hook into the test database initialization process
      2. Give the user a way to force a test database synchronization
    
    While `test:prepare` is still a dependency of every test task, `db:test:prepare`
    no longer hooks into it. This means that `test:prepare` runs before the schema
    is synchronized. Plugins, which insert data can now hook into `db:test:prepare`.
    
    The automatic schema maintenance can't detect when a migration is rolled-back,
    modified and reapplied. In this case the user has to fall back to `db:test:prepare`
    to force the synchronization to happen.
Loading