From fd169b66178e54b65a834a7d5ec84c3871d96eeb Mon Sep 17 00:00:00 2001 From: marina Date: Mon, 26 Aug 2024 09:24:57 +0300 Subject: [PATCH] =?utf8?q?ERP-85=20=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7?= =?utf8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BE=D0=B1=D0=BC=D0=B5=D0=BD?= =?utf8?q?=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=201=D0=A1=20?= =?utf8?q?=D0=91=D1=83=D1=85=D0=B3=D0=B0=D0=BB=D1=82=D0=B5=D1=80=D0=B8?= =?utf8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...m240826_055119_change_motivation_table.php | 31 +++++++++++++++++++ ...thly_value_into_motivation_value_group.php | 29 +++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 erp24/migrations/m240826_055119_change_motivation_table.php create mode 100644 erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php diff --git a/erp24/migrations/m240826_055119_change_motivation_table.php b/erp24/migrations/m240826_055119_change_motivation_table.php new file mode 100644 index 00000000..1263386a --- /dev/null +++ b/erp24/migrations/m240826_055119_change_motivation_table.php @@ -0,0 +1,31 @@ +addColumn('motivation_costs_items', 'is_weekly', $this->boolean()->comment('Еженедельный сбор')); + $this->addColumn('motivation_costs_items', 'is_combined', $this->boolean()->comment('Cбор помесячно из 1С Бух')); + $this->addColumn('motivation_costs_items', 'created_by', $this->integer()); + $this->addColumn('motivation_costs_items', 'updated_by', $this->integer()); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->dropColumn('motivation_costs_items', 'is_weekly'); + $this->dropColumn('motivation_costs_items', 'is_combined'); + $this->dropColumn('motivation_costs_items', 'created_by'); + $this->dropColumn('motivation_costs_items', 'updated_by'); + } +} diff --git a/erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php b/erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php new file mode 100644 index 00000000..47509d35 --- /dev/null +++ b/erp24/migrations/m240826_060227_add_monthly_value_into_motivation_value_group.php @@ -0,0 +1,29 @@ +insert('motivation_value_group', [ + 'id' => 10, + 'name' => 'Месяц', + 'alias' => 'month' + ]); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->delete('motivation_value_group', ['alias' => 'month']); + } +} -- 2.39.5