From a613ee58c79dfbbe39440c3c85c8948e502a7e8d Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 22 Aug 2014 20:52:23 +0200 Subject: [PATCH] Default ist downloadable --- php/database/update_020601.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/database/update_020601.php b/php/database/update_020601.php index 5eb2bff..f914a91 100644 --- a/php/database/update_020601.php +++ b/php/database/update_020601.php @@ -8,7 +8,7 @@ # Add `downloadable` 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) { Log::error($database, 'update_020601', __LINE__, 'Could not update database (' . $database->error . ')'); return false;