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