for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* m180621_100600_oauthClientUser.php
* PHP version 5.6+
*
* Create applicants
* @author Maxime Deschamps <[email protected]>
* @copyright 2010-2018 Ibitux
* @license http://www.ibitux.com/license license
* @version XXX
* @link http://www.ibitux.com
* @package src\migrations
*/
use yii\db\Migration;
* Class m180621_100600_oauthClientUser
* @since XXX
class m180621_100600_oauthClientUser 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.
{
* @inheritdoc
public function safeUp()
$this->createTable('{{%oauthClientUser}}', [
'clientId' => $this->string(255),
'userId' => $this->string(255),
'PRIMARY KEY(clientId, userId)',
], 'ENGINE=InnoDB DEFAULT CHARSET=utf8');
$this->addForeignKey(
'client_user_client_id_fk',
'{{%oauthClientUser}}',
'clientId',
'{{%oauthClients}}',
'id',
'CASCADE',
'CASCADE'
);
return true;
}
public function safeDown()
$this->dropForeignKey('client_user_client_id_fk', '{{%oauthClientUser}}');
$this->dropTable('{{%oauthClientUser}}');
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.