<?php

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

class CreateStoriesLangTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('stories_lang', function(Blueprint $table)
		{
			$table->increments('translation_id');
			$table->integer('story_id')->unsigned()->index('FK_stories_lang_1');
			$table->string('language_id', 2);
			$table->string('title');
			$table->string('highlight_title')->nullable();
			$table->string('highlight_subtitle')->nullable();
			$table->string('highlight_cta_text')->nullable();
			$table->string('meta_title', 160)->nullable();
			$table->string('meta_description', 160)->nullable();
			$table->string('meta_keywords')->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('stories_lang');
	}

}
