|
|
@@ -0,0 +1,30 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use Phinx\Migration\AbstractMigration;
|
|
|
+
|
|
|
+class FixLocationAddressAllowNull extends AbstractMigration {
|
|
|
+ public function up() {
|
|
|
+ $this->table("location")
|
|
|
+ ->changeColumn("legal_entity_name", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("address_1", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("address_2", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("city", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("county", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("postal_code", "string", ["limit" => 20, "null" => true])
|
|
|
+ ->changeColumn("state", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("country", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("email", "string", ["limit" => 100, "null" => true])
|
|
|
+ ->changeColumn("phone", "string", ["limit" => 20, "null" => true])
|
|
|
+ ->changeColumn("opening_hours", "string", ["limit" => 200, "null" => true])
|
|
|
+ ->changeColumn("shop_left", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("shop_right", "string", ["limit" => 50, "null" => true])
|
|
|
+ ->changeColumn("latitude", "double", ["null" => true])
|
|
|
+ ->changeColumn("longitude", "double", ["null" => true])
|
|
|
+ ->changeColumn("dts_verified", "datetime", ["null" => true])
|
|
|
+ ->update();
|
|
|
+ }
|
|
|
+
|
|
|
+ public function down() {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|