Skip to content

Commit 6219566

Browse files
committed
删除官方文档中不存在的部分 #44
1 parent 78ac5a4 commit 6219566

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

migrations.md

-20
Original file line numberDiff line numberDiff line change
@@ -319,26 +319,6 @@ $table->index('state'); | 添加基本索引 (index)
319319
`$table->dropUnique('users_email_unique');` | 从「users」数据表移除唯一索引
320320
`$table->dropIndex('geo_state_index');` | 从「geo」数据表移除基本索引
321321

322-
### 移除时间戳记和软删除
323-
324-
要移除 `timestamps``nullableTimestamps``softDeletes` 字段类型,您可以使用以下方法:
325-
326-
命令 | 功能描述
327-
------------- | -------------
328-
`$table->dropTimestamps();` | 移除 **created\_at****updated\_at** 字段
329-
`$table->dropSoftDeletes();` | 移除 **deleted\_at** 字段
330-
331-
### 保存引擎
332-
333-
要配置数据表的保存引擎,可在结构生成器配置 `engine` 属性:
334-
335-
Schema::create('users', function($table)
336-
{
337-
$table->engine = 'InnoDB';
338-
339-
$table->string('email');
340-
});
341-
342322
<a name="foreign-key-constraints"></a>
343323
### 外键约束
344324

0 commit comments

Comments
 (0)