MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/snap.cafsinfotech.in/database/migrations/2019_01_22_062511_add_important_flag.php
<?php

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

class AddImportantFlag extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('screenshots', function (Blueprint $table) {
            $table->boolean('important')->default(false);
        });

        Schema::table('users', function (Blueprint $table) {
            $table->boolean('important')->default(false);
        });

        Schema::table('tasks', function (Blueprint $table) {
            $table->boolean('important')->default(false);
        });

        Schema::table('projects', function (Blueprint $table) {
            $table->boolean('important')->default(false);
        });
    }

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

        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn('important');
        });

        Schema::table('tasks', function (Blueprint $table) {
            $table->dropColumn('important');
        });

        Schema::table('projects', function (Blueprint $table) {
            $table->dropColumn('important');
        });
    }
}