Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose projection DBAL Schema #4991

Open
bwaidelich opened this issue Apr 12, 2024 · 2 comments
Open

Expose projection DBAL Schema #4991

bwaidelich opened this issue Apr 12, 2024 · 2 comments
Labels

Comments

@bwaidelich
Copy link
Member

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 bwaidelich added the 9.0 label Apr 12, 2024
@bwaidelich bwaidelich changed the title Expose projection DBAL Schema from Expose projection DBAL Schema Apr 12, 2024
@mhsdesign
Copy link
Member

with the introduction of the status i think the idea is obsolete right? #4846 i suspect we can close this.

@bwaidelich
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants