mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
fix anchor
http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#creating-migrations
This commit is contained in:
@ -136,7 +136,7 @@ class m150101_185401_create_news_table extends Migration
|
|||||||
|
|
||||||
The base migration class [[yii\db\Migration]] exposes a database connection via the [[yii\db\Migration::db|db]]
|
The base migration class [[yii\db\Migration]] exposes a database connection via the [[yii\db\Migration::db|db]]
|
||||||
property. You can use it to manipulate the database schema using the methods as described in
|
property. You can use it to manipulate the database schema using the methods as described in
|
||||||
[Working with Database Schema](db-dao.md#working-with-database-schema-).
|
[Working with Database Schema](db-dao.md#database-schema).
|
||||||
|
|
||||||
Rather than using physical types, when creating a table or column you should use *abstract types*
|
Rather than using physical types, when creating a table or column you should use *abstract types*
|
||||||
so that your migrations are independent of specific DBMS. The [[yii\db\Schema]] class defines
|
so that your migrations are independent of specific DBMS. The [[yii\db\Schema]] class defines
|
||||||
|
Reference in New Issue
Block a user