浏览代码

Update 2022_02_03_135359_create_transformative_typ_outcome.php

父节点
当前提交
8c9a763a1f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      app/database/migrations/2022_02_03_135359_create_transformative_typ_outcome.php

+ 4
- 4
app/database/migrations/2022_02_03_135359_create_transformative_typ_outcome.php 查看文件

@@ -31,14 +31,14 @@ class CreateTransformativeTypOutcome extends Migration
31 31
 			$table->foreign('proposing_coordinator_id')
32 32
 				->references('id')
33 33
 				->on('users')
34
-				->onDelete('restrict')
35
-				->onUpdate('restrict');
34
+				->onDelete('cascade')
35
+				->onUpdate('cascade');
36 36
 
37 37
 
38 38
 
39 39
 			$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
40
-			$table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP'));
41
-			$table->timestamp('deleted_at')->default(DB::raw('CURRENT_TIMESTAMP'));
40
+			$table->timestamp('updated_at')->nullable();
41
+			$table->timestamp('deleted_at')->nullable();
42 42
 			//$table->softDeletes()->default(DB::raw('CURRENT_TIMESTAMP'));
43 43
 
44 44
 		});