Merge branches 'staging' and 'staging' of itcorp.primaya.id:rajif/aso into staging

This commit is contained in:
2023-09-19 14:54:29 +07:00
10 changed files with 349 additions and 5 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');
});
}
};