Thanks for that, but it's still producing an empty schema file.
Here's the command I'm running...
cake schema generate -plugin Users -file users-schema.php
... and here's my folder structure...
config
controllers
locale
models
plugins
users
controllers
views
models
tests
users_app_controller.php
users_app_model.php
vendors
tests
tmp
vendors
views
webroot
... and this is what I'm getting out...
<?php
/* SVN FILE: $Id$ */
/* Sos schema generated on: 2010-10-18 11:10:58 : 1287399538*/
class SosSchema extends CakeSchema {
var $name = 'Sos';
function before($event = array()) {
return true;
}
function after($event = array()) {
}
}
?>
What am I doing wrong?
Thanks,
Toby
On Oct 17, 8:25 pm, Tilen Majerle <[email protected]> wrote:
> cake schema generate -plugin plugin_name
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/10/17 Toby G <[email protected]>
>
>
>
> > Hi all,
>
> > I've recently created a Users plugin to manage all my user logins,
> > however I would now like to create a migration schema for the users
> > table, but running the...
>
> > cake schema generate
>
> > ... on the app ignores the models in the plugin.
>
> > Does anyone know a way of generating schemas for plugin models?
>
> > Thanks,
>
> > Toby
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]
> > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en