Merge branch 'release-2.140.115'
[feisty_meow.git] / production / example_apps / zippy_maps / config / Migrations / 20170712140650_AddLatLongColumnsToLocationsTable.php
diff --git a/production/example_apps/zippy_maps/config/Migrations/20170712140650_AddLatLongColumnsToLocationsTable.php b/production/example_apps/zippy_maps/config/Migrations/20170712140650_AddLatLongColumnsToLocationsTable.php
new file mode 100644 (file)
index 0000000..71c9b42
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+use Migrations\AbstractMigration;
+
+class AddLatLongColumnsToLocationsTable extends AbstractMigration
+{
+    /**
+     * Change Method.
+     *
+     * More information on this method is available here:
+     * http://docs.phinx.org/en/latest/migrations.html#the-change-method
+     * @return void
+     */
+    public function change()
+    {
+        $table = $this->table('locations');
+        
+               $table->addColumn('lat', 'float', ['null' => true]);
+               $table->addColumn('lng', 'float', ['null' => true]);
+        
+        $table->update();
+        
+        
+    }
+}