Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Alto
/
rkn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit a7e65d14
authored
2021-06-04 18:35:12 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
поправил название полей модели фильров
Изменил структуру таблицы фильтров
1 parent
c14a8453
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
migrations/m210603_142134_filters.php
models/Filter.php
views/layouts/main.php
migrations/m210603_142134_filters.php
View file @
a7e65d1
...
...
@@ -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
(
'Тип'
),
...
...
models/Filter.php
View file @
a7e65d1
...
...
@@ -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'
];
}
...
...
views/layouts/main.php
View file @
a7e65d1
...
...
@@ -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'
]];
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment