neos-development-collection icon indicating copy to clipboard operation
neos-development-collection copied to clipboard

Expose projection DBAL Schema

Open bwaidelich opened this issue 1 year ago • 2 comments

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

bwaidelich avatar Apr 12 '24 13:04 bwaidelich

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.

mhsdesign avatar Nov 26 '24 14:11 mhsdesign

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

bwaidelich avatar Nov 26 '24 14:11 bwaidelich