Commit a7e65d14 by san58

поправил название полей модели фильров

Изменил структуру таблицы фильтров
1 parent c14a8453
......@@ -15,7 +15,7 @@ class m210603_142134_filters extends Migration
$this->createTable('{{%filters}}', [
'id' => $this->primaryKey(),
'pattern' => $this->text()->notNull()->comment('Паттерн'),
'created' => $this->dateTime()->comment('Дата записи'),
'created' => $this->dateTime()->notNull()->comment('Дата записи'),
'include' => $this->tinyInteger(1)->notNull()->defaultValue(0)->comment('Исключение или включение'),
'status' => $this->tinyInteger(1)->notNull()->defaultValue(0)->comment('Статус'),
'type' => $this->tinyInteger(1)->notNull()->defaultValue(0)->comment('Тип'),
......
......@@ -70,13 +70,11 @@ class Filter extends \yii\db\ActiveRecord
{
return [
'id' => 'ID',
'domain' => 'Domain',
'created_at' => 'Date',
'csv_date' => 'Date CSV',
'wis_date' => 'Date WHOIS',
'wis_status' => 'Status',
'domain_expire' => 'Date expired',
'tix' => 'TIX',
'pattern' => 'Pattern',
'created' => 'Date',
'include' => 'Included',
'status' => 'Status',
'type' => 'Type'
];
}
......
......@@ -47,6 +47,7 @@ AppAsset::register($this);
if (Yii::$app->user->isGuest===false)
{
$items[] = ['label' => 'Result', 'url' => ['/host-free']];
$items[] = ['label' => 'Filter', 'url' => ['/filter']];
$items[] = ['label' => 'Domains', 'url' => ['/host']];
$items[] = ['label' => 'Logout (' . Yii::$app->user->identity->name . ')', 'url' => ['/auth/logout']];
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!