| 123456789101112 |
- <?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();
- }
- }
|