]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-65
authormarina <m.zozirova@gmail.com>
Thu, 4 Jul 2024 06:46:57 +0000 (09:46 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 4 Jul 2024 06:46:57 +0000 (09:46 +0300)
Перенести в новый фактический табель все смены сотрудников, которые были до 13.06

erp24/migrations/m240703_094403_change_fk_on_timetable_fact.php [new file with mode: 0644]

diff --git a/erp24/migrations/m240703_094403_change_fk_on_timetable_fact.php b/erp24/migrations/m240703_094403_change_fk_on_timetable_fact.php
new file mode 100644 (file)
index 0000000..06c3992
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+use yii\db\Migration;
+
+/**
+ * Class m240703_094403_change_fk_on_timetable_fact
+ */
+class m240703_094403_change_fk_on_timetable_fact extends Migration
+{
+    /**
+     * {@inheritdoc}
+     */
+    public function safeUp()
+    {
+        $this->dropForeignKey('fk_timetable_fact_to_plan', 'timetable_fact');
+    }
+
+    /**
+     * {@inheritdoc}
+     */
+    public function safeDown()
+    {
+        $this->addForeignKey('fk_timetable_fact_to_plan', 'timetable_fact', 'plan_id', 'timetable', 'id');
+    }
+}