Skip to content

A self-hosted media server and file management system

fix: adding scanned_at down migration overwrites data in date_scanned

aminnausin41deadf610b6
diff --git a/database/migrations/2026_01_28_015136_add_scanned_at_to_metadata.php b/database/migrations/2026_01_28_015136_add_scanned_at_to_metadata.php
index 452f76f1..b3534f79 100644
--- a/database/migrations/2026_01_28_015136_add_scanned_at_to_metadata.php
+++ b/database/migrations/2026_01_28_015136_add_scanned_at_to_metadata.php
@@ -21,8 +21,6 @@ return new class extends Migration {
* Reverse the migrations.
*/
public function down(): void {
- DB::table('metadata')->whereNotNull('file_scanned_at')->update(['date_scanned' => DB::raw('DATE(file_scanned_at)')]);
-
Schema::table('metadata', function (Blueprint $table) {
$table->dropColumn('file_scanned_at');
});