26 lines
637 B
PHP
26 lines
637 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
|
||
|
|
return new class extends Migration
|
||
|
|
{
|
||
|
|
public function up()
|
||
|
|
{
|
||
|
|
Schema::create('containers', function (Blueprint $table) {
|
||
|
|
$table->id();
|
||
|
|
$table->string('container_name');
|
||
|
|
$table->string('container_number')->unique();
|
||
|
|
$table->date('container_date');
|
||
|
|
$table->string('excel_file')->nullable();
|
||
|
|
$table->timestamps();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down()
|
||
|
|
{
|
||
|
|
Schema::dropIfExists('containers');
|
||
|
|
}
|
||
|
|
};
|