Default ist downloadable

This commit is contained in:
Tobias Reich 2014-08-22 20:52:23 +02:00
parent 0fa1f648c8
commit a613ee58c7

View File

@ -8,7 +8,7 @@
# Add `downloadable` # Add `downloadable`
if (!$database->query("SELECT `downloadable` FROM `lychee_albums` LIMIT 1;")) { if (!$database->query("SELECT `downloadable` FROM `lychee_albums` LIMIT 1;")) {
$result = $database->query("ALTER TABLE `lychee_albums` ADD `downloadable` TINYINT(1) NOT NULL DEFAULT 0"); $result = $database->query("ALTER TABLE `lychee_albums` ADD `downloadable` TINYINT(1) NOT NULL DEFAULT 1");
if (!$result) { if (!$result) {
Log::error($database, 'update_020601', __LINE__, 'Could not update database (' . $database->error . ')'); Log::error($database, 'update_020601', __LINE__, 'Could not update database (' . $database->error . ')');
return false; return false;