Yii Framework Forum: Migrationsss - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Migrationsss Rate Topic: -----

#1 User is offline   Bushi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 72
  • Joined: 16-April 15

Posted 16 September 2015 - 02:52 AM

hi all, yii2
when making a migration indicating the migrationPath, for example:

$./yii migrate --migrationPath=modules/foo/migrations


Yii does not save the migration path used in migration :unsure: So when I run the command down, I have to specify the migrationPath for each migration. but when many migrations, this becomes a problem Posted Image

When i run the command without the parameter migrationPath in a migration that is not in the default directory y get the exception
failed to open stream: No such file or directory'
obviously :rolleyes:

with many migrations and modules do this is difficult, I think you should store the migrationPath Yii used for each migration. :D

something like change the migration table to :

CREATE TABLE migration (
  	version varchar(180) PRIMARY KEY,
  	path varchar(x),
  	apply_time integer,
  )

if there is a way to do it and I let me note. :mellow: thk :)
yii2 guide
please ! use yii2
0

#2 User is offline   Bushi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 72
  • Joined: 16-April 15

Posted 16 September 2015 - 03:29 AM

in github yii2/issues/9698
yii2 guide
please ! use yii2
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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