Projections provide a setup() method that allows them to automatically create/update the storage schema.
If used standalone it would be useful to leave that to the application, e.g. in order to provide users with an interactive experience ("do you want to create the following tables...").
Therefore we could introduce some interface like:
use Doctrine\DBAL\Schema\Schema;
interface ProvidesDbalSchema {
public function getSchema(): Schema;
}
Projections provide a
setup()
method that allows them to automatically create/update the storage schema. If used standalone it would be useful to leave that to the application, e.g. in order to provide users with an interactive experience ("do you want to create the following tables...").Therefore we could introduce some interface like:
and implement that in our DBAL-based projections.
Related: #4227