Yii Framework Forum: How To Up/down All Migration From All Modules - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Up/down All Migration From All Modules How to up/down all migration from all modules

#1 User is offline   denisOgr 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 04-September 13

Posted 14 July 2014 - 05:08 AM

Hi
I use YII2.
How can I up/down all migration from all modules in one command?
I can do it which one module to set --migrationPath option.
PS I want to save migration from module in directory module.

Thanks
0

#2 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 566
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 14 July 2014 - 05:17 AM

This is currently not possible in one command. This feature is planned: https://github.com/y...yii2/issues/384
0

#3 User is offline   denisOgr 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 04-September 13

Posted 14 July 2014 - 05:32 AM

View PostCeBe, on 14 July 2014 - 05:17 AM, said:

This is currently not possible in one command. This feature is planned: https://github.com/y...yii2/issues/384

thanks
maybe you know some extensions or some way, how can i do it?
0

#4 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 566
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 14 July 2014 - 06:29 AM

It is referenced in that issue: https://github.com/d...migrate-command
0

#5 User is offline   paskuale 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 30-December 11
  • Location:Italy, Bari

Posted 14 July 2014 - 06:50 AM

It's possible performed the command "yiic migrate" automatically without shell access? Maybe from php with exec(); or shell_exec(); ?

thanks
0

#6 User is offline   denisOgr 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 04-September 13

Posted 14 July 2014 - 08:50 AM

View PostCeBe, on 14 July 2014 - 06:29 AM, said:

It is referenced in that issue: https://github.com/d...migrate-command


Thanks, it works for me.
But It forces me to add new line with migration path in config...
0

#7 User is offline   Samir IZZA 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 07-August 12
  • Location:Algeria

Posted 12 August 2017 - 05:38 AM

View Postpaskuale, on 14 July 2014 - 06:50 AM, said:

It's possible performed the command "yiic migrate" automatically without shell access? Maybe from php with exec(); or shell_exec(); ?

thanks


https://github.com/s...k/yii2-webshell
0

#8 User is offline   jkofsky 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 662
  • Joined: 17-May 10
  • Location:Pensacola, Florida

Posted 13 August 2017 - 12:36 AM

View PostdenisOgr, on 14 July 2014 - 05:08 AM, said:

Hi
I use YII2.
How can I up/down all migration from all modules in one command?
I can do it which one module to set --migrationPath option.
PS I want to save migration from module in directory module.

Thanks

A batch file could be used.
Do, or do not. There is no 'try.' Jedi Master Yoda
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users