| 1234567891011121314151617181920 |
- <?php
- declare(strict_types=1);
- use Phinx\Migration\AbstractMigration;
- final class AddAddressTable extends AbstractMigration {
- public function change(): void {
- $this->table("address", ["signed" => false, "collation" => "utf8mb4_general_ci"])
- ->addColumn("address_1", "string", ["null" => true])
- ->addColumn("address_2", "string", ["null" => true])
- ->addColumn("city", "string", ["null" => true])
- ->addColumn("county", "string", ["null" => true])
- ->addColumn("postal_code", "string", ["null" => true])
- ->addColumn("state", "string", ["null" => true])
- ->addColumn("country", "string", ["limit" => 2, "null" => true])
- ->addColumn("latitude", "double", ["null" => true])
- ->addColumn("longitude", "double", ["null" => true])
- ->create();
- }
- }
|