Merge branch 'add_minutes' of https://github.com/q6q9/guild into add_minutes

This commit is contained in:
andrey committed 2021-11-23 16:16:09 +03:00
commit 8e490ce518
11 files changed
+56 -8

No files matched your search

@@ -0,0 +1,25 @@
<?php
use yii\db\Migration;
/**
* Handles adding columns to table `{{%reports_task}}`.
*/
class m211122_144548_add_column_to_reports_task_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('reports_task', 'minutes_spent', $this->integer()->defaultValue(0)->notNull());
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('reports_task', 'minutes_spent' );
}
}