<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddGenericBlockLocation extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('generic_blocks', function (Blueprint $table) {
            $table->double('location_lat')->nullable();;
            $table->double('location_lng')->nullable();;
            $table->unsignedInteger('location_zoom')->nullable();;
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('generic_blocks', function (Blueprint $table) {
            $table->dropColumn('location_lat');
            $table->dropColumn('location_lng');
            $table->dropColumn('location_zoom');
        });
    }
}
