<?php

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

class CreateBaseDb extends Migration
{
    public function up()
    {
        Schema::create('posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title');
            $table->longText('md');
            $table->timestamps();
        });

        Schema::create('now', function(Blueprint $table) {
            $table->bigIncrements('id');
            $table->longText('md');
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('now');
        Schema::dropIfExists('posts');
    }
}
