From fe0eded740d54e3faa3d0022b72e3a13b9d3a775 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Mon, 12 Jun 2023 16:59:37 +0700 Subject: [PATCH] Update migration --- .../2023_04_10_024720_create_directorats_table.php | 4 ++++ ...3_04_10_024731_create_sub_directorats_table.php | 3 +++ .../2023_04_10_024809_create_jobs_table.php | 3 +++ .../2023_04_10_024820_create_sub_jobs_table.php | 3 +++ ...2023_04_14_034926_create_sub_sub_jobs_table.php | 3 +++ ...23_04_17_130450_create_document_types_table.php | 3 +++ ...023_04_17_130450_create_special_codes_table.php | 3 +++ .../2023_04_17_135901_create_documents_table.php | 3 ++- Resources/views/partials/menu/_app.blade.php | 14 ++++++++++++-- 9 files changed, 36 insertions(+), 3 deletions(-) diff --git a/Database/Migrations/2023_04_10_024720_create_directorats_table.php b/Database/Migrations/2023_04_10_024720_create_directorats_table.php index 3ccfaaa..60b3100 100644 --- a/Database/Migrations/2023_04_10_024720_create_directorats_table.php +++ b/Database/Migrations/2023_04_10_024720_create_directorats_table.php @@ -15,12 +15,16 @@ $table->id(); $table->string('kode', 2); $table->string('name', 50); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); + }); } diff --git a/Database/Migrations/2023_04_10_024731_create_sub_directorats_table.php b/Database/Migrations/2023_04_10_024731_create_sub_directorats_table.php index 67d463f..8309b85 100644 --- a/Database/Migrations/2023_04_10_024731_create_sub_directorats_table.php +++ b/Database/Migrations/2023_04_10_024731_create_sub_directorats_table.php @@ -16,12 +16,15 @@ $table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade'); $table->string('kode', 2); $table->string('name', 50); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Database/Migrations/2023_04_10_024809_create_jobs_table.php b/Database/Migrations/2023_04_10_024809_create_jobs_table.php index 603c858..7c77647 100644 --- a/Database/Migrations/2023_04_10_024809_create_jobs_table.php +++ b/Database/Migrations/2023_04_10_024809_create_jobs_table.php @@ -17,12 +17,15 @@ $table->foreignId('sub_directorat_id')->constrained('sub_directorats')->onDelete('cascade'); $table->string('kode', 2); $table->string('name', 50); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Database/Migrations/2023_04_10_024820_create_sub_jobs_table.php b/Database/Migrations/2023_04_10_024820_create_sub_jobs_table.php index a26a256..0a4508f 100644 --- a/Database/Migrations/2023_04_10_024820_create_sub_jobs_table.php +++ b/Database/Migrations/2023_04_10_024820_create_sub_jobs_table.php @@ -18,12 +18,15 @@ $table->foreignId('job_id')->constrained('jobs')->onDelete('cascade'); $table->string('kode', 2); $table->string('name', 50); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Database/Migrations/2023_04_14_034926_create_sub_sub_jobs_table.php b/Database/Migrations/2023_04_14_034926_create_sub_sub_jobs_table.php index ef969ba..2fa1e9b 100644 --- a/Database/Migrations/2023_04_14_034926_create_sub_sub_jobs_table.php +++ b/Database/Migrations/2023_04_14_034926_create_sub_sub_jobs_table.php @@ -19,12 +19,15 @@ $table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade'); $table->string('kode'); $table->string('name'); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Database/Migrations/2023_04_17_130450_create_document_types_table.php b/Database/Migrations/2023_04_17_130450_create_document_types_table.php index e976e3d..7bc0853 100644 --- a/Database/Migrations/2023_04_17_130450_create_document_types_table.php +++ b/Database/Migrations/2023_04_17_130450_create_document_types_table.php @@ -15,12 +15,15 @@ $table->id(); $table->string('kode', 2); $table->string('name'); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Database/Migrations/2023_04_17_130450_create_special_codes_table.php b/Database/Migrations/2023_04_17_130450_create_special_codes_table.php index a76acda..9884a11 100644 --- a/Database/Migrations/2023_04_17_130450_create_special_codes_table.php +++ b/Database/Migrations/2023_04_17_130450_create_special_codes_table.php @@ -16,12 +16,15 @@ $table->string('kode', 2); $table->string('name'); $table->string('description')->nullable(); + $table->string('status', 1)->default(0); $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Database/Migrations/2023_04_17_135901_create_documents_table.php b/Database/Migrations/2023_04_17_135901_create_documents_table.php index e346ca7..4138e4b 100644 --- a/Database/Migrations/2023_04_17_135901_create_documents_table.php +++ b/Database/Migrations/2023_04_17_135901_create_documents_table.php @@ -31,13 +31,14 @@ $table->string('kode_dus', 6); $table->string('kode_odner', 8); $table->string('status')->default(0)->nullable(); - $table->timestamps(); + $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); + $table->unsignedBigInteger('authorized_by')->nullable(); }); } diff --git a/Resources/views/partials/menu/_app.blade.php b/Resources/views/partials/menu/_app.blade.php index f7f2255..3879a5a 100644 --- a/Resources/views/partials/menu/_app.blade.php +++ b/Resources/views/partials/menu/_app.blade.php @@ -1,10 +1,20 @@ @canany(['document.read','document.create','document.update','document.delete']) + + +