move Da\User migrations from resources to dedicated namespace

This commit is contained in:
resurtm
2016-12-13 13:27:43 +06:00
parent ab7665eea5
commit 51a8a2b335
4 changed files with 14 additions and 7 deletions

View File

@ -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()
{ {
@ -17,10 +19,9 @@ class m000000_000001_create_user_table extends \yii\db\Migration
'confirmed_at' => $this->integer(), 'confirmed_at' => $this->integer(),
'blocked_at' => $this->integer(), 'blocked_at' => $this->integer(),
'updated_at' => $this->integer()->notNull(), 'updated_at' => $this->integer()->notNull(),
'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);
} }

View File

@ -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()
{ {
@ -14,7 +16,7 @@ class m000000_000002_create_profile_table extends \yii\db\Migration
'gravatar_email' => $this->string(255), 'gravatar_email' => $this->string(255),
'gravatar_id' => $this->string(32), 'gravatar_id' => $this->string(32),
'location' => $this->string(255), 'location' => $this->string(255),
'website'=> $this->string(255), 'website' => $this->string(255),
'timezone' => $this->string(40), 'timezone' => $this->string(40),
'bio' => $this->text() 'bio' => $this->text()
] ]

View File

@ -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()
{ {

View File

@ -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()
{ {