Use bigint(14) for album if in photo table #533

This commit is contained in:
Tobias Reich 2016-06-11 17:12:59 +02:00
parent 5c4f3413b1
commit a38a5ded4d

View File

@ -8,7 +8,7 @@ use Lychee\Modules\Database;
use Lychee\Modules\Response;
// Change type of the album id field
$query = Database::prepare($connection, "ALTER TABLE `?` CHANGE `album` `album` BIGINT UNSIGNED NOT NULL", array(LYCHEE_TABLE_PHOTOS));
$query = Database::prepare($connection, "ALTER TABLE `?` CHANGE `album` `album` BIGINT(14) UNSIGNED NOT NULL", array(LYCHEE_TABLE_PHOTOS));
$result = Database::execute($connection, $query, 'update_030102', __LINE__);
if ($result===false) Response::error('Could not change type of the album id field!');