File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -319,26 +319,6 @@ $table->index('state'); | 添加基本索引 (index)
319
319
` $table->dropUnique('users_email_unique'); ` | 从「users」数据表移除唯一索引
320
320
` $table->dropIndex('geo_state_index'); ` | 从「geo」数据表移除基本索引
321
321
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
-
342
322
<a name =" foreign-key-constraints " ></a >
343
323
### 外键约束
344
324
You can’t perform that action at this time.
0 commit comments