Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-server
Commits
e084db72
Commit
e084db72
authored
Sep 06, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Задача 12799] Добавил миграцию для создания поля user_ip
parent
5bbd8043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
0.addCommentColumn.sql
db/migrations/0.addCommentColumn.sql
+0
-0
20180906174959_add_user_ip_field.php
db/migrations/20180906174959_add_user_ip_field.php
+17
-0
No files found.
migrations/0.addCommentColumn.sql
→
db/
migrations/0.addCommentColumn.sql
View file @
e084db72
File moved
db/migrations/20180906174959_add_user_ip_field.php
0 → 100644
View file @
e084db72
<?php
use
Phinx\Migration\AbstractMigration
;
class
AddUserIpField
extends
AbstractMigration
{
public
function
change
()
{
$this
->
table
(
"messages"
)
->
addColumn
(
"user_ip"
,
"string"
,
[
"null"
=>
true
])
->
addIndex
(
"user_ip"
)
->
update
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment