Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / production / example_apps / zippy_maps / config / Migrations / 20170712140650_AddLatLongColumnsToLocationsTable.php
1 <?php
2 use Migrations\AbstractMigration;
3
4 class AddLatLongColumnsToLocationsTable extends AbstractMigration
5 {
6     /**
7      * Change Method.
8      *
9      * More information on this method is available here:
10      * http://docs.phinx.org/en/latest/migrations.html#the-change-method
11      * @return void
12      */
13     public function change()
14     {
15         $table = $this->table('locations');
16         
17         $table->addColumn('lat', 'float', ['null' => true]);
18         $table->addColumn('lng', 'float', ['null' => true]);
19         
20         $table->update();
21         
22         
23     }
24 }