2 use Migrations\AbstractMigration;
3 class DropLatlongFromLocationsTable extends AbstractMigration {
6 * going forward, we have two columns (lat and lng) for the geo coords. so we're getting rid
7 * of the latlong combined column.
10 $this->table ( 'locations' )->removeColumn ( 'latlong' )->update ();
13 * but for preservation of former realities, we re-add the latlong column if we're going backwards.
14 * this supports our code for transmogrifying the coordinates between two column format and one
17 public function down() {
18 $this->table ( 'locations' )->addColumn ( 'latlong', 'string', [