@@ -0,0 +1,12 @@
+<?php
+
+use Phinx\Migration\AbstractMigration;
+class FixUserLocationRejectForeignKey extends AbstractMigration {
+ public function change() {
+ $this->table("user_location_reject")
+ ->dropForeignKey("location_id")
+ ->addForeignKey("location_id", "location", "id", ["update" => "CASCADE", "delete" => "CASCADE"])
+ ->update();
+ }
+}