Перенести в новый фактический табель все смены сотрудников, которые были до 13.06
--- /dev/null
+<?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');
+ }
+}