Merge branch 'master' into config-smtp
This commit is contained in:
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Class m231013_122324_add_foreign_key_in_project_from_owner_id_to_user_id
|
||||
*/
|
||||
class m231013_122324_add_foreign_key_in_project_from_owner_id_to_user_id extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->addForeignKey(
|
||||
'project_user',
|
||||
'project',
|
||||
'owner_id',
|
||||
'user',
|
||||
'id'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropForeignKey('project_user', 'project');
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Handles adding columns to table `{{%project_task}}`.
|
||||
*/
|
||||
class m231013_144526_add_execution_priority_column_to_project_task_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->addColumn('project_task', 'execution_priority', $this->integer(1));
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropColumn('project_task', 'execution_priority');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user