]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Исправление миграции sent_kogort и добавление первичного ключа
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 26 Dec 2024 08:35:28 +0000 (11:35 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 26 Dec 2024 08:35:28 +0000 (11:35 +0300)
erp24/migrations/m241220_131428_create_sent_kogort_table.php
erp24/records/SentKogort.php

index cde25f6cd885f9719627ff7148912e5a4a604252..09993dccf90636236dea7e4d46943b4e76bf1077 100644 (file)
@@ -17,7 +17,7 @@ class m241220_131428_create_sent_kogort_table extends Migration
 
         if (!isset($tableSchema)) {
             $this->createTable(self::TABLE_NAME, [
-                'id' => $this->bigInteger(),
+                'id' => $this->bigInteger()->comment('ID'),
                 'phone' => $this->string(15)->notNull()->comment('Телефон пользователя'),
                 'kogort_number' => $this->integer()->notNull()->comment('Номер типа когорты когорты'),
                 'kogort_date' => $this->date()->notNull()->comment('Дата когорты'),
index eedc2fbcfd12bbe1e41549990f9378c9c6b46b71..bd74e55fa6cd45835159b860747b2f3b2a23d544 100644 (file)
@@ -63,4 +63,9 @@ class SentKogort extends \yii\db\ActiveRecord
             'created_at' => 'Дата создания записи',
         ];
     }
+
+    public static function primaryKey()
+    {
+        return ['id'];
+    }
 }