From 817f9809145ad6bb09fbfbd7f1a4543095b8580c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 6 Sep 2007 13:13:08 +0000 Subject: #173314 by drewish: mark previously uploaded files as permanent, so they will not be deleted after an upgrade --- modules/system/system.install | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/system/system.install b/modules/system/system.install index 29917cab0..16ba49e5c 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3561,6 +3561,9 @@ function system_update_6022() { break; } + // Mark all existing files as FILE_STATUS_PERMANENT. + $ret[] = update_sql('UPDATE {files} SET status = 1'); + return $ret; } -- cgit v1.2.3