accesses new
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Handles dropping columns from table `{{%accesses}}`.
|
||||
*/
|
||||
class m200121_115737_drop_access_column_from_accesses_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->dropColumn('{{%accesses}}', 'access');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->addColumn('{{%accesses}}', 'access', $this->string());
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Handles adding columns to table `{{%accesses}}`.
|
||||
*/
|
||||
class m200121_120006_add_login_column_to_accesses_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->addColumn('{{%accesses}}', 'login', $this->string());
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropColumn('{{%accesses}}', 'login');
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Handles adding columns to table `{{%accesses}}`.
|
||||
*/
|
||||
class m200121_120121_add_password_column_to_accesses_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->addColumn('{{%accesses}}', 'password', $this->string());
|
||||
$this->addColumn('{{%accesses}}', 'link', $this->string());
|
||||
$this->addColumn('{{%accesses}}', 'project', $this->string());
|
||||
$this->addColumn('{{%accesses}}', 'info', $this->text());
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropColumn('{{%accesses}}', 'password');
|
||||
$this->dropColumn('{{%accesses}}', 'link');
|
||||
$this->dropColumn('{{%accesses}}', 'project');
|
||||
$this->dropColumn('{{%accesses}}', 'info');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user