<?php

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

class AddScheduleDatetime extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('website_objects', function (Blueprint $table) {
            $table->dateTime('publish_on')->nullable();
        });

        Schema::table('website_objects_lang', function (Blueprint $table) {
            $table->dateTime('lang_publish_on')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('website_objects', function (Blueprint $table) {
            $table->dropColumn('publish_on');
        });

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