From b45e9a9033e196403e26ada45ef3d5581a65ffda Mon Sep 17 00:00:00 2001 From: anatolidew Date: Tue, 23 Nov 2021 11:03:19 +0300 Subject: [PATCH] =?UTF-8?q?*=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=B0=20=D0=BC=D0=B8=D0=BD=D1=83=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...44548_add_column_to_reports_task_table.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 console/migrations/m211122_144548_add_column_to_reports_task_table.php diff --git a/console/migrations/m211122_144548_add_column_to_reports_task_table.php b/console/migrations/m211122_144548_add_column_to_reports_task_table.php new file mode 100644 index 0000000..7e3479e --- /dev/null +++ b/console/migrations/m211122_144548_add_column_to_reports_task_table.php @@ -0,0 +1,25 @@ +addColumn('reports_task', 'minutes_spent', $this->integer()->defaultValue(0)->notNull()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->dropColumn('reports_task', 'minutes_spent' ); + } +}