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 001496b0
authored
2021-06-07 13:14:02 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
добавил миграцию
1 parent
ff0b93b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
migrations/m210606_170159_add_host_status.php
migrations/m210606_170159_add_host_status.php
0 → 100644
View file @
001496b
<?php
use
yii\db\Migration
;
/**
* Class m210606_170159_add_host_status
*/
class
m210606_170159_add_host_status
extends
Migration
{
/**
* {@inheritdoc}
*/
public
function
safeUp
()
{
$this
->
addColumn
(
'{{%host}}'
,
'status'
,
$this
->
tinyInteger
(
1
)
->
notNull
()
->
defaultValue
(
0
)
->
comment
(
'Статус'
));
}
/**
* {@inheritdoc}
*/
public
function
safeDown
()
{
$this
->
dropColumn
(
'{{%host}}'
,
'status'
);
}
}
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