Commit a7e65d14 by san58

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

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