2013-06-17 18:40:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
define('LYCHEE', true);
|
|
|
|
|
|
|
|
// Include
|
|
|
|
require('check.php');
|
|
|
|
|
|
|
|
if($error=='') {
|
|
|
|
if(!$database->query("SELECT `public` FROM `lychee_albums`;")) $database->query("ALTER TABLE `lychee_albums` ADD `public` TINYINT( 1 ) NOT NULL DEFAULT '0'");
|
|
|
|
if(!$database->query("SELECT `password` FROM `lychee_albums`;")) $database->query("ALTER TABLE `lychee_albums` ADD `password` VARCHAR( 100 ) NULL DEFAULT NULL");
|
2013-09-03 09:59:30 +00:00
|
|
|
$database->query("UPDATE `lychee_photos` SET url = replace(url, 'uploads/big/', ''), thumbUrl = replace(thumbUrl, 'uploads/thumb/', '')");
|
2013-06-17 18:40:04 +00:00
|
|
|
echo "\nUpdate complete!";
|
|
|
|
} else {
|
|
|
|
echo "\nCould not Update!";
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|