File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ class AddTableServerTransfers extends Migration
1313 */
1414 public function up ()
1515 {
16- Schema::dropIfExists ('server_transfers ' );
17-
1816 Schema::create ('server_transfers ' , function (Blueprint $ table ) {
1917 $ table ->increments ('id ' );
2018 $ table ->integer ('server_id ' )->unsigned ();
@@ -26,10 +24,8 @@ public function up()
2624 $ table ->string ('old_additional_allocations ' )->nullable ();
2725 $ table ->string ('new_additional_allocations ' )->nullable ();
2826 $ table ->timestamps ();
29- });
3027
31- Schema::table ('server_transfers ' , function (Blueprint $ table ) {
32- $ table ->foreign ('server_id ' )->references ('id ' )->on ('servers ' );
28+ $ table ->foreign ('server_id ' )->references ('id ' )->on ('servers ' )->onDelete ('cascade ' );
3329 });
3430 }
3531
You can’t perform that action at this time.
0 commit comments