LMS dapat upload dokumen TC corporate
This commit is contained in:
ivan-sim
2023-09-19 13:42:05 +07:00
parent ed2d5ee90a
commit 21e146da7e
7 changed files with 346 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('files_doc', function (Blueprint $table) {
$table->increments('id');
$table->bigInteger('corporate_id');
$table->string('original_name', 255);
$table->string('path', 255);
$table->bigInteger('created_by');
$table->bigInteger('updated_by');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('files_doc');
}
};

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('files_doc', function (Blueprint $table) {
$table->tinyInteger('status_download')->default(0)->after('path');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('files_doc', function (Blueprint $table) {
$table->dropColumn('status_download');
});
}
};