Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
3f597fd4
Commit
3f597fd4
authored
Aug 22, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated doc [skip ci]
parent
6102a153
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
db-migrations.md
docs/guide/db-migrations.md
+1
-1
Migration.php
framework/db/Migration.php
+4
-1
No files found.
docs/guide/db-migrations.md
View file @
3f597fd4
...
@@ -293,7 +293,7 @@ line:
...
@@ -293,7 +293,7 @@ line:
migration history information. It defaults to
`migration`
. The table
migration history information. It defaults to
`migration`
. The table
structure is
`version varchar(255) primary key, apply_time integer`
.
structure is
`version varchar(255) primary key, apply_time integer`
.
*
`
connectionID
`
: string, specifies the ID of the database application component.
*
`
db
`
: string, specifies the ID of the database application component.
Defaults to 'db'.
Defaults to 'db'.
*
`templateFile`
: string, specifies the path of the file to be served as the code
*
`templateFile`
: string, specifies the path of the file to be served as the code
...
...
framework/db/Migration.php
View file @
3f597fd4
...
@@ -40,7 +40,10 @@ class Migration extends Component implements MigrationInterface
...
@@ -40,7 +40,10 @@ class Migration extends Component implements MigrationInterface
{
{
/**
/**
* @var Connection|string the DB connection object or the application component ID of the DB connection
* @var Connection|string the DB connection object or the application component ID of the DB connection
* that this migration should work with.
* that this migration should work with. Note that when a Migration object is created by
* the `migrate` command, this property will be overwritten by the command. If you do not want to
* use the DB connection provided by the command, you may override the [[init()]] method
* and set this property after calling `parent::init()`.
*/
*/
public
$db
=
'db'
;
public
$db
=
'db'
;
...
...
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