move Da\User migrations from resources to dedicated namespace
This commit is contained in:
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace Da\User\Migration;
|
||||||
|
|
||||||
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000001_create_user_table extends \yii\db\Migration
|
class m000000_000001_create_user_table extends Migration
|
||||||
{
|
{
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
@ -20,7 +22,6 @@ class m000000_000001_create_user_table extends \yii\db\Migration
|
|||||||
'created_at' => $this->integer()->notNull()
|
'created_at' => $this->integer()->notNull()
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
$this->createIndex('idx_user_username', '{{%user}}', 'username', true);
|
$this->createIndex('idx_user_username', '{{%user}}', 'username', true);
|
||||||
$this->createIndex('idx_user_email', '{{%user}}', 'email', true);
|
$this->createIndex('idx_user_email', '{{%user}}', 'email', true);
|
||||||
}
|
}
|
||||||
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace Da\User\Migration;
|
||||||
|
|
||||||
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000002_create_profile_table extends \yii\db\Migration
|
class m000000_000002_create_profile_table extends Migration
|
||||||
{
|
{
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace Da\User\Migration;
|
||||||
|
|
||||||
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000003_create_social_account_table extends \yii\db\Migration
|
class m000000_000003_create_social_account_table extends Migration
|
||||||
{
|
{
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace Da\User\Migration;
|
||||||
|
|
||||||
|
use yii\db\Migration;
|
||||||
|
|
||||||
class m000000_000004_create_token_table extends \yii\db\Migration
|
class m000000_000004_create_token_table extends Migration
|
||||||
{
|
{
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user