for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class m170731_173719_comments_and_relationships_fix extends CDbMigration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function up()
}
public function down()
$this->addForeignKey('user_roles_fk', 'users', 'user_role', 'user_roles', 'id', 'CASCADE', 'NO ACTION');
$this->execute('ALTER TABLE `comments` MODIFY comment TEXT NOT NULL');
/*
// Use safeUp/safeDown to do migration with transaction
public function safeUp()
public function safeDown()
*/
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.