File "2016_02_16_071246_add_mark_attendance_companies.php"

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

<?php

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

class AddMarkAttendanceCompanies extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('companies', function (Blueprint $table) {
            $table->boolean('mark_attendance')->default(true);
            $table->time('office_start_time')->nullable();
            $table->time('office_end_time')->nullable();
        });
    }

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