for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link http://phe.me
* @copyright Copyright (c) 2014 Pheme
* @license MIT http://opensource.org/licenses/MIT
*/
use yii\db\Migration;
class m151126_091910_add_unique_index extends Migration
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 safeUp()
$this->createIndex('settings_unique_key_section', '{{%settings}}', ['section', 'key'], true);
}
public function safeDown()
$this->dropIndex('settings_unique_key_section', '{{%settings}}');
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.