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
*/
* @author Aris Karageorgos <[email protected]>
class m140618_045255_create_settings extends \yii\db\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 up()
$this->createTable(
'{{%settings}}',
[
'id' => $this->primaryKey(),
'type' => $this->string(255)->notNull(),
'section' => $this->string(255)->notNull(),
'key' => $this->string(255)->notNull(),
'value' => $this->text(),
'active' => $this->boolean(),
'created' => $this->dateTime(),
'modified' => $this->dateTime(),
]
);
}
public function down()
$this->dropTable('{{%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.