From 62195662cf8fab4e08b950a09540f7e4bc9aada2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9B=B8=E8=BD=A9?= Date: Wed, 2 Sep 2015 15:33:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AE=98=E6=96=B9=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B8=AD=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E9=83=A8?= =?UTF-8?q?=E5=88=86=20=20#44?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migrations.md | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/migrations.md b/migrations.md index 71af0c00942..0ff557c6146 100644 --- a/migrations.md +++ b/migrations.md @@ -319,26 +319,6 @@ $table->index('state'); | 添加基本索引 (index) `$table->dropUnique('users_email_unique');` | 从「users」数据表移除唯一索引 `$table->dropIndex('geo_state_index');` | 从「geo」数据表移除基本索引 -### 移除时间戳记和软删除 - -要移除 `timestamps`、`nullableTimestamps` 或 `softDeletes` 字段类型,您可以使用以下方法: - -命令 | 功能描述 -------------- | ------------- -`$table->dropTimestamps();` | 移除 **created\_at** 和 **updated\_at** 字段 -`$table->dropSoftDeletes();` | 移除 **deleted\_at** 字段 - -### 保存引擎 - -要配置数据表的保存引擎,可在结构生成器配置 `engine` 属性: - - Schema::create('users', function($table) - { - $table->engine = 'InnoDB'; - - $table->string('email'); - }); - ### 外键约束