%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/sljcon/database/migrations/
Upload File :
Create Path :
Current File : /var/www/html/sljcon/database/migrations/2018_02_22_224149_create_projects_table.php

<?php

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

class CreateProjectsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('projects', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->string('slug')->unique();
            $table->text('short_description');
            $table->enum('project_type',[1,2,3]);//1=>318x318; 2=>318x640; 3=> 640x318
            $table->integer('order');
            $table->date('start_date');
            $table->date('finish_date');
            $table->integer('work_hours');
            $table->integer('staff_number');
            $table->unsignedInteger('category_id');
            $table->foreign('category_id')->references('id')->on('categories');
            $table->timestamps();
        });
    }

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

Zerion Mini Shell 1.0