Comming ucUs SH3LL V.2

Path : /home/gujo45me/public_html/oliva/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/oliva/database/migrations/2018_07_22_174657_create_traslados_table.php

<?php

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

class CreateTrasladosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('traslados', function (Blueprint $table) {
            $table->integer('id_traslado')->autoIncrement();
            $table->integer('id_local_origen');
            $table->integer('id_local_destino');
            $table->integer('id_usuario');
            $table->string('descripcion', 200)->nullable(); 
            $table->decimal('flete', 9, 2)->nullable(); 
            $table->tinyInteger('estado')->default('1');
            $table->timestamps();

            $table->foreign('id_local_origen')->references('id_local')->on('local'); 
            $table->foreign('id_local_destino')->references('id_local')->on('local'); 
            $table->foreign('id_usuario')->references('id_usuario')->on('usuarios'); 
        });
    }

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

Copyright © 2019 | Powered By MecUs7