Questions tagged [yii-migrations]

This tag covers database migrations for Yii, a modern PHP framework that supports

For more information see the Yii documentation for database migrations.

19 questions
0
votes
2 answers

How to up a specific migration (e.g. m151125_053608) in YII 1.1

Is it possible to migrate up a specific migration in Yii 1.1 ? I have created some migrations but i want to execute a specific migration before all other migrations are up. Also, yiic migrate up 3 will migrate the latest three migrations and at the…
Owais
  • 49
  • 12
0
votes
0 answers

YII Migrations on multiple Databases same structure different data

We have ported the YII Migrations to our application. But sadly due to lack of knowledge / missing req. we are stuck on how to manage migrations between multiple instances of the same database. Our structure is based on the same database which has…
Sangoku
  • 1,588
  • 2
  • 21
  • 50
0
votes
1 answer

CDbMigration::update does not work inside foreach loop

Following this question. There is something wrong, when using CDbMigration::update() inside foreach loop. This code does not work correctly: //This is executed inside Yii migration, so $this is CDbMigration. foreach($idMap as $menuId=>$pageId) { …
trejder
  • 17,148
  • 27
  • 124
  • 216
0
votes
1 answer

Yii migration not working

I have a issue with my Yii migration. The problem is i migrated a code which was done sucessfully after the successful migration i tried another migration code, but that showed me to migration codes, the first one that i had already migrated and the…
samhu kiklsk
  • 153
  • 1
  • 1
  • 7
1
2