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

Move templates to plugins #514

Closed
wzrdtales opened this issue Nov 1, 2017 · 0 comments
Closed

Move templates to plugins #514

wzrdtales opened this issue Nov 1, 2017 · 0 comments

Comments

@wzrdtales
Copy link
Member

wzrdtales commented Nov 1, 2017

Description

Remove templates from the core and move them to plugins instead. This should enable more flexibility in creating own templates.

Implementation Details

The core will provide the plugin with the passed arguments configured and requested by the plugin and takes care of actually writing the migration to disk. A plugin may only provide 2 files in case of non db-migrate related migration schemas (like SQL-files) which need to be passed properly defined and separated into up and down categories. Normal migrations just simply pass their template to db-migrate and specify optionally a different file ending. If additionally any more files that are not migrations themselves, i.e. configuration files, need to be written the core will provide the plugin an api for that as well. The core will only allow to write files within the migration folder, in any other case the plugin needs to take care of this itself.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

No branches or pull requests

1 participant