hmm...maybe because of tables or what...

i have Gallery Plugin and GalleryCategory and GalleryImage models and tables
gallery_images and gallery_categories and it works perfect!

so problem is maybe recognizing tables...make tables in
pluginname_controllername so users_users and then try again... :D

2010/10/18 Toby G <t...@tgpromotions.com>

> 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 <tilen.maje...@gmail.com> wrote:
> > cake schema generate -plugin plugin_name
> > --
> > Tilen Majerlehttp://majerle.eu
> >
> > 2010/10/17 Toby G <t...@tgpromotions.com>
> >
> >
> >
> > > 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 cake-php@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>
> <cake-php%2bunsubscr...@googlegroups.c 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
--
Tilen Majerle
http://majerle.eu

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to