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

It's possible to use migrations for custom plugin? #312

Closed
ghost opened this issue Sep 6, 2017 · 6 comments
Closed

It's possible to use migrations for custom plugin? #312

ghost opened this issue Sep 6, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 6, 2017

I've tried to put it like the example below and run cake Migrations.migration run up, but i got a message saying that i have no valid migration files.

[ ... ]
/Plugin
    /Custom
        /Config
            /Migration
                001_add_custom.php
        /Controller
        /Model
        /View
[ ... ]
@ghost ghost changed the title It's possible to generate and use a migration file for a custom plugin? It's possible to use migrations for custom plugin? Sep 6, 2017
@pmoraes
Copy link

pmoraes commented Sep 6, 2017

I'm not sure about your question. Could you give more information about it?

Thanks @ricardovigatti

@ghost
Copy link
Author

ghost commented Sep 6, 2017

Well, there is nothing special about this. I want to use migrations whitin custom plugins.

I've tried like the example above, putting the generated migration file inside the plugin folder, but got that error. Seems like the Migrations plugin didn't find the migration file inside the plugin folder.

I don't know if it's supported.

@pmoraes
Copy link

pmoraes commented Sep 6, 2017

you can have migrations inside the plugins. You can check our documentation. https://github.com/CakeDC/migrations/blob/master/Docs/Documentation/Examples.md#running-migrations-for-plugins if you have any more doubts, please let me know.

@ghost
Copy link
Author

ghost commented Sep 8, 2017

Well, i was searching for a doc like that, but somehow the link you gave is pointing me to a 404 not found page.

@ghost
Copy link
Author

ghost commented Sep 8, 2017

Thanks, i'll try it

@ghost ghost closed this as completed Sep 8, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants