File "2017_10_14_220813_create_pbc_workitems_table.php"

Full path: /home/qooetu/costes.qooetu.com/database/migrations/2017_10_14_220813_create_pbc_workitems_table.php
File size: 1.22 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php

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

class CreatePbcWorkitemsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pbc_workitems', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('authority_id')->unsigned()->nullable();
            $table->integer('region_id')->unsigned()->nullable();
            $table->string('workitem')->nullable();
            $table->string('owner')->default('Admin');
            $table->string('survey_year')->nullable();
            $table->string('pavement')->nullable();
            $table->string('unit')->nullable();
            $table->double('unit_price')->nullable();
            $table->string('category')->nullable();
            $table->string('service_scope')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

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