first commit
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_documents', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('document_id')->autoIncrement();
|
||||
$table->string('document_name')->nullable();
|
||||
$table->text('document_path')->nullable();
|
||||
$table->text('document_for_ref')->nullable();
|
||||
$table->unsignedBigInteger('documentable_id');
|
||||
$table->string('documentable_type');
|
||||
$table->integer('status')->default(11);
|
||||
$table->mediumText('description');
|
||||
$table->mediumText('remarks');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_documents');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user