if (!isset($tableSchema)) {
$this->createTable(self::TABLE_NAME, [
- 'id' => $this->bigInteger()->comment('ID'),
+ 'id' => $this->bigPrimaryKey()->comment('ID'),
'phone' => $this->string(15)->notNull()->comment('Телефон пользователя'),
'kogort_number' => $this->integer()->notNull()->comment('Номер типа когорты когорты'),
'kogort_date' => $this->date()->notNull()->comment('Дата когорты'),
'purchase' => $this->tinyInteger(1)->notNull()->defaultValue(0)->comment('Покупка'),
'created_at' => $this->dateTime()->notNull()->defaultExpression('CURRENT_TIMESTAMP')->comment('Дата создания записи'),
]);
- // $this->addPrimaryKey('pk_sent_kogort', self::TABLE_NAME, 'id');
+
}
}
const TYPE_MESSAGE = [
'target' => 'offer_text',
'whatsapp' => 'offer_whatsapp',
- //'call' => 'offer_text',
+ 'call' => 'offer_text',
];
/**
* {@inheritdoc}
<h1><?= Html::encode($this->title) ?>: <?= \yii_app\records\Users::KOGORT_TYPES[$type] ?>
на <span style="color:red"><?= date('d-m-Y', strtotime($date)) ?></span></h1>
-
+<?php if ($type != 'call') { ?>
<div class="row mb-6">
<div class="col-lg-4 col-md-6 col-sm-8 col-xs-12 col-xl-4">
</div>
</div>
</div>
-
+<?php } ?>
<?= GridView::widget([