<?php

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

class ChangeColumnsPropertyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        DB::statement("ALTER TABLE property MODIFY COLUMN name varchar(255) NOT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN destination_id int(10) unsigned DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN country varchar(5) DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN property_type_id int(10) unsigned DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN chain_id int(10) unsigned DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN rating double DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN official_name varchar(255) DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN tax_office varchar(255) DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN tax_number varchar(255) DEFAULT NULL");
        DB::statement("ALTER TABLE property MODIFY COLUMN currency_type varchar(3) DEFAULT NULL");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
