--- /dev/null
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m240826_055119_change_motivation_table
+ */
+class m240826_055119_change_motivation_table extends Migration
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function safeUp()
+ {
+ $this->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');
+ }
+}
--- /dev/null
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m240826_060227_add_monthly_value_into_motivation_value_group
+ */
+class m240826_060227_add_monthly_value_into_motivation_value_group extends Migration
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function safeUp()
+ {
+ $this->insert('motivation_value_group', [
+ 'id' => 10,
+ 'name' => 'Месяц',
+ 'alias' => 'month'
+ ]);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function safeDown()
+ {
+ $this->delete('motivation_value_group', ['alias' => 'month']);
+ }
+}