diff --git a/database/migrations/2026_02_25_110000_add_gcs_columns_to_files_table.php b/database/migrations/2026_02_25_110000_add_gcs_columns_to_files_table.php new file mode 100644 index 0000000..b9bc828 --- /dev/null +++ b/database/migrations/2026_02_25_110000_add_gcs_columns_to_files_table.php @@ -0,0 +1,23 @@ +string('gcs_object_name', 500)->nullable()->after('file_type')->comment('GCS 객체 경로'); + $table->string('gcs_uri', 600)->nullable()->after('gcs_object_name')->comment('gs://bucket/object URI'); + }); + } + + public function down(): void + { + Schema::table('files', function (Blueprint $table) { + $table->dropColumn(['gcs_object_name', 'gcs_uri']); + }); + } +};