neos-development-collection
neos-development-collection copied to clipboard
Expose projection DBAL 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:
use Doctrine\DBAL\Schema\Schema;
interface ProvidesDbalSchema {
public function getSchema(): Schema;
}
and implement that in our DBAL-based projections.
Related: #4227
with the introduction of the status i think the idea is obsolete right? https://github.com/neos/neos-development-collection/pull/4846 i suspect we can close this.
Not sure if it's really required but It's not obsolete. The idea came from someone that plans to use the ESCR standalone and wants to have more control over db migration