<?php

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

class AddDanishTranslation extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		DB::table('languages')->insert(['name' => 'Danish', 'locale' => 'da']);
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
        $language = \App\Models\Language::whereLocale('da')->first();
		$language->delete();
	}

}
