From 8088cf1d373efaea206d74c72a4504e528288e09 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 24 May 2012 11:35:00 +0000 Subject: feature 2632: multiple size, upgrade task for new organization of "upload" and "galleries" directories git-svn-id: http://piwigo.org/svn/trunk@15288 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/122-database.php | 83 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 install/db/122-database.php (limited to 'install/db/122-database.php') diff --git a/install/db/122-database.php b/install/db/122-database.php new file mode 100644 index 000000000..f9c437b5a --- /dev/null +++ b/install/db/122-database.php @@ -0,0 +1,83 @@ + $row['id'], + 'width' => $row['high_width'], + 'height' => $row['high_height'], + 'filesize' => $row['high_filesize'], + ) + ); + } +} + +if (count($updates) > 0) +{ + mass_updates( + IMAGES_TABLE, + array( + 'primary' => array('id'), + 'update' => array('width', 'height', 'filesize'), + ), + $updates + ); +} + +echo +"\n" +. $upgrade_description.sprintf(' (execution in %.3fs)', (get_moment() - $starttime)) +."\n" +; +?> \ No newline at end of file -- cgit v1.2.3