File "2016_02_11_152050_updates.php"

Full Path: /home/isoftco/public_html/hrm/database/migrations/2016_02_11_152050_updates.php
File size: 727 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

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

class Updates extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create("updates", function(Blueprint $table) {
            $table->increments("id");
            $table->string("title", 100);
            $table->text("excerpt");
            $table->text("description");
            $table->enum("status", ["Unpublished", "Published"]);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists("updates");
    }
}