]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-5 Доработать фактический план по сотрудникам
authormarina <m.zozirova@gmail.com>
Thu, 13 Jun 2024 07:52:55 +0000 (10:52 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 13 Jun 2024 07:52:55 +0000 (10:52 +0300)
erp24/migrations/m240603_082541_create_new_fact_plan_table.php

index 2ab233dbd3931819aa47ebbe5d9deb664bdb88c0..266b540a6180e67a41fe814647a10012f55fa9eb 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 
 use yii\db\Migration;
-use yii_app\records\TimetableFact;
 
 /**
  * Handles the creation of table `{{%new_fact_plan}}`.
@@ -13,7 +12,7 @@ class m240603_082541_create_new_fact_plan_table extends Migration
      */
     public function safeUp()
     {
-        if ($this->db->getTableSchema(TimetableFact::tableName()) !== null) {
+        if ($this->db->getTableSchema('{{%erp24.timetable_fact}}') !== null) {
             $this->createTable('{{%erp24.timetable_fact}}', [
                 'id' => $this->primaryKey(),
                 'admin_id' => $this->integer()->comment('ID сотрудника'),