From 0a3ef54639893a73e4f637b02547a4be7a38381c Mon Sep 17 00:00:00 2001 From: fomichev Date: Thu, 26 Dec 2024 11:35:28 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8?= =?utf8?q?=D0=B8=20sent=5Fkogort=20=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?utf8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B2=D0=B8?= =?utf8?q?=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BB=D1=8E=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/migrations/m241220_131428_create_sent_kogort_table.php | 2 +- erp24/records/SentKogort.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/erp24/migrations/m241220_131428_create_sent_kogort_table.php b/erp24/migrations/m241220_131428_create_sent_kogort_table.php index cde25f6c..09993dcc 100644 --- a/erp24/migrations/m241220_131428_create_sent_kogort_table.php +++ b/erp24/migrations/m241220_131428_create_sent_kogort_table.php @@ -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('Дата когорты'), diff --git a/erp24/records/SentKogort.php b/erp24/records/SentKogort.php index eedc2fbc..bd74e55f 100644 --- a/erp24/records/SentKogort.php +++ b/erp24/records/SentKogort.php @@ -63,4 +63,9 @@ class SentKogort extends \yii\db\ActiveRecord 'created_at' => 'Дата создания записи', ]; } + + public static function primaryKey() + { + return ['id']; + } } -- 2.39.5