Browse Source

Update 2022_02_03_135359_create_transformative_typ_outcome.php

parent
commit
8c9a763a1f

+ 4
- 4
app/database/migrations/2022_02_03_135359_create_transformative_typ_outcome.php View File

31
 			$table->foreign('proposing_coordinator_id')
31
 			$table->foreign('proposing_coordinator_id')
32
 				->references('id')
32
 				->references('id')
33
 				->on('users')
33
 				->on('users')
34
-				->onDelete('restrict')
35
-				->onUpdate('restrict');
34
+				->onDelete('cascade')
35
+				->onUpdate('cascade');
36
 
36
 
37
 
37
 
38
 
38
 
39
 			$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
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
 			//$table->softDeletes()->default(DB::raw('CURRENT_TIMESTAMP'));
42
 			//$table->softDeletes()->default(DB::raw('CURRENT_TIMESTAMP'));
43
 
43
 
44
 		});
44
 		});