翻译错误
相关信息:
- 类型:文档文章
- 文章: 数据库迁移
- 文档: 《Laravel 6 中文文档(6.x)》
此投稿已在 6年前 合并。
内容修改:
| Old | New | Differences |
|---|---|---|
| 240 | 240 | `$table->mediumIncrements('id');` | 递增 ID (主键) ,相当于「UNSIGNED MEDIUM INTEGER」 |
| 241 | 241 | `$table->mediumInteger('votes');` | 相当于 MEDIUMINT |
| 242 | 242 | `$table->mediumText('description');` | 相当于 MEDIUMTEXT |
| 243 | `$table->morphs('taggable');` | 相当于加入递增的 `taggable_id` 与字符串 ` | |
| 243 | `$table->morphs('taggable');` | 相当于加入递增的 `taggable_id` 与字符串 `taggable_type` | |
| 244 | 244 | `$table->uuidMorphs('taggable');` | 相当于加入 `taggable_id`与字符串`taggable_type`UUID列。 |
| 245 | 245 | `$table->multiLineString('positions');` | 相当于 MULTILINESTRING |
| 246 | 246 | `$table->multiPoint('positions');` | 相当于 MULTIPOINT | … | … |
| 252 | 252 | `$table->polygon('positions');` | 相当于 POLYGON |
| 253 | 253 | `$table->rememberToken();` | 相当于可空版本的 VARCHAR (100) 的 `remember_token` 字段 |
| 254 | 254 | `$table->set('flavors', ['strawberry', 'vanilla']);` | 相当于 SET |
| 255 | `$table->smallIncrements('id');` | | |
| 255 | `$table->smallIncrements('id');` | 递增 ID(主键),相当于「UNSIGNED SMALLINT」 | |
| 256 | 256 | `$table->smallInteger('votes');` | 相当于 SMALLINT |
| 257 | 257 | `$table->softDeletes();` | 相当于为软删除添加一个可空的 `deleted_at` 字段 |
| 258 | 258 | `$table->softDeletesTz();` | 相当于为软删除添加一个可空的 带时区的 `deleted_at` 字段 |
关于 LearnKu