Comming ucUs SH3LL V.2

Path : /home/gujo45me/public_html/fserrano/database/migrations/
Disable Functions : exec,passthru,shell_exec,system
System : Linux server-604606.appsiete.com 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64

[ Home ][ Zone-h ][ Jumping ][ Symlink ][ Mass Depes ][ Command ]

File Upload :
Current File : /home/gujo45me/public_html/fserrano/database/migrations/2018_05_19_095938_create_local_table.php

<?php

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

class CreateLocalTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('local', function (Blueprint $table) {
            $table->integer('id_local')->autoIncrement();
            $table->integer('id_tipo_local');
            $table->string('nombre', 100);
            $table->string('direccion', 200)->nullable();
            $table->string('telefono', 30)->nullable();
            $table->string('serie_factura', 5)->nullable();
            $table->string('serie_boleta', 5)->nullable();
            $table->string('serie_guia', 5)->nullable();
            $table->string('serie_guia_2', 5)->nullable();
            $table->tinyInteger('estado')->default('1');
            $table->timestamps();

            $table->foreign('id_tipo_local')
                  ->references('id_tipo_local')->on('tipo_local')
                  ->onUpdate('cascade')
                  ->onDelete('cascade');
        });
    }

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

Copyright © 2019 | Powered By MecUs7