For "packaging" and versioning the database I would suggest using the 
migrations plugin:

http://github.com/cakephp/migrations

Composer has post install scripts you can setup. But it would be better to 
let the user run the migrations on their own.


On Sunday, August 31, 2014 10:46:49 AM UTC+2, Dieter Gribnitz wrote:
>
> Hi,
> I had a look around on the web and could not find any documentation 
> surrounding the setup of plugins.
> If there are any documentation surrounding plugin packaging I would 
> greatly appreciate someone pointing me in the right direction.
> I have managed to set up a simple installer that loads the plugin via a 
> git repo similar to debug-kit.
>
> Here are the basic questions I have regarding this:
> Is there currently any way to export a part of your DB schema in 3.0 and 
> package it in the config of the plugin on the git repo?
> Is there any way to alter tables with version changes?
> Are there any scripts that get triggered to run post plugin install or 
> update?
>
> Thanks.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to