Thanks Miachal, @Marco: In order for my end-user to call the generated migration class, is it possible to write a script to call migration classes and update db? or migration is only possible via console command? I appreciate your advice about this.
On Fri, Jun 13, 2014 at 2:23 AM, Michał Piotrowski <[email protected]> wrote: > I don't know if it's easy or not - I never did it this way. > > If you are looking for inspirations I've seen something like this in > OROCRM. > > 2014-06-12 23:25 GMT+02:00 Nima Sadjadi <[email protected]>: > > > > Thanks Michael, I will look at it, but just a quick question: when I > > finished migration classes, is it possible to call these classes from a > > web-based php script to install db? or they can be used via console only? > > > > > > > > On Fri, Jun 13, 2014 at 1:44 AM, Michał Piotrowski <[email protected]> > > wrote: > >> > >> Hi, > >> > >> I think that you should take a look at this > >> https://github.com/doctrine/migrations > >> > >> 2014-06-12 23:06 GMT+02:00 Nima Sadjadi <[email protected]>: > >> > > >> > I am creating an installer with dbal.I made CREATE TABLE... as $sqls > >> > array, > >> > and in a foreach I do run: > >> > $conn->executeUpdate > >> > to create tables. However it works fine but just wanted to ask if this > >> > is a > >> > good practice or is there a better way to do so? > >> > > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "doctrine-user" 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/doctrine-user. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >> > >> > >> -- > >> Best regards, > >> Michal > >> > >> http://eventhorizon.pl/ > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "doctrine-user" 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/doctrine-user. > >> For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "doctrine-user" 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/doctrine-user. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Best regards, > Michal > > http://eventhorizon.pl/ > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" 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/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" 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/doctrine-user. For more options, visit https://groups.google.com/d/optout.
