Skip to content

Commit

Permalink
Use bigint(14) for album if in photo table #533
Browse files Browse the repository at this point in the history
  • Loading branch information
electerious committed Jun 11, 2016
1 parent 5c4f341 commit a38a5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/database/update_030102.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
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!');
Expand Down

0 comments on commit a38a5de

Please sign in to comment.