<?php

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

class AddShareUrlToContents extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('exhibition_languages', function (Blueprint $table) {
            $table->string('share_url', 512)->nullable();
        });

        Schema::table('collection_languages', function (Blueprint $table) {
            $table->string('share_url', 512)->nullable();
        });

        Schema::table('artist_languages', function (Blueprint $table) {
            $table->string('share_url', 512)->nullable();
        });
    }

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

        Schema::table('exhibition_languages', function (Blueprint $table) {
            $table->dropColumn('share_url');
        });

        Schema::table('collection_languages', function (Blueprint $table) {
            $table->dropColumn('share_url');
        });

        Schema::table('artist_languages', function (Blueprint $table) {
            $table->dropColumn('share_url');
        });
    }
}
