I am creating a parent child table using yii migration where there is a foreign key on the child table. I tried using execute but that did not help me ...
I am creating a parent child table using yii migration where there is a foreign key on the child table. I tried using execute but that did not help me ...
I try to run a yii2 basic project with docker in macOS BigSur. This is my docker-compose.yml: and this is config/db.php: I use the same folder m ...
Since I'm required to work on both PHP5.x and PHP7.x projects in Yii framework, I've installed WAMP. I've also set up my environment variables to lin ...
I am learning database migration in Yii2. I am trying to create a new migration class create_news_table using command through composer. I installed ...
I have two database with these config file db.php file db2.php file when I want use db2 database config in migrate I get error error: ...
I'm using the basic template for Yii2. I created the project and uploaded it to github so other devs can clone and start contributing. After cloning ...
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 o ...
I'm just beginning developing with the Yii 2 Framework, and installed the officially advanced app . The migration script of the user table defines '1 ...
This code works just fine (all database items updated as expected): But it prints 0 affected rows for each executed query. Why? The same effect is ...
Following this question. There is something wrong, when using CDbMigration::update() inside foreach loop. This code does not work correctly: For e ...
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 migra ...
I'm trying to use the yii migration system but I'm stuck on this error when I execute this command: I get this error: What is this template.php? ...
I am using migrations in Yii to create a new column with. My code works fine however, I am unsure how to set a primary key? This is a part from my mi ...
I have a Yii framework installed by Composer, webapp in public_html folder and all libraries in vendor folder: My configuration in console.php is: ...
I'm trying to use the yii migration system but I'm stuck on this error when I execute this commande: I get this error: (CCompenent.php:173) But ...