From df02dc0c5fea824c53c091fe77846d6c112e4cf1 Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Tue, 19 Aug 2025 09:33:26 +0700 Subject: [PATCH] tambah flag untuk file --- ...8_19_092805_add_source_to_files_tables.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2025_08_19_092805_add_source_to_files_tables.php diff --git a/database/migrations/2025_08_19_092805_add_source_to_files_tables.php b/database/migrations/2025_08_19_092805_add_source_to_files_tables.php new file mode 100644 index 00000000..8e49ea09 --- /dev/null +++ b/database/migrations/2025_08_19_092805_add_source_to_files_tables.php @@ -0,0 +1,32 @@ +string('source')->after('extension')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('files', function (Blueprint $table) { + $table->dropColumn('source'); + }); + } +};