<?php

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

class AddDataToPropertyAdditionalInfoKey extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        DB::table('property_additional_info_key')->insert(
            [
                [
                    'additional_info_key' => 'locale_name_language',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ],
                [
                    'additional_info_key' => 'locale_name',
                    'status' => 1,
                    'created_by' => 1,
                    'updated_by' => 1,
                    'created_at' => 1,
                    'updated_at' => 1,
                ]
            ]
        );
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::connection()->statement("DELETE FROM property_additional_info_key  WHERE additional_info_key = 'locale_name_language' ");
        DB::connection()->statement("DELETE FROM property_additional_info_key  WHERE additional_info_key = 'locale_name' ");
    }
}
