We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78ac5a4 commit 6219566Copy full SHA for 6219566
migrations.md
@@ -319,26 +319,6 @@ $table->index('state'); | 添加基本索引 (index)
319
`$table->dropUnique('users_email_unique');` | 从「users」数据表移除唯一索引
320
`$table->dropIndex('geo_state_index');` | 从「geo」数据表移除基本索引
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
<a name="foreign-key-constraints"></a>
343
### 外键约束
344
0 commit comments