Updated to minor version
This commit is contained in:
parent
9548f43b06
commit
7ba384e70a
@ -16,7 +16,7 @@ final class Database {
|
|||||||
'030003', // 3.0.3
|
'030003', // 3.0.3
|
||||||
'030100', // 3.1.0
|
'030100', // 3.1.0
|
||||||
'030102', // 3.1.2
|
'030102', // 3.1.2
|
||||||
'030103' // 3.1.3
|
'030200' // 3.2.0
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update to version 3.1.3
|
* Update to version 3.2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Lychee\Modules\Database;
|
use Lychee\Modules\Database;
|
||||||
@ -9,21 +9,21 @@ use Lychee\Modules\Response;
|
|||||||
|
|
||||||
// Add parent field to albums
|
// Add parent field to albums
|
||||||
$query = Database::prepare($connection, "SELECT `parent` FROM `?` LIMIT 1", array(LYCHEE_TABLE_ALBUMS));
|
$query = Database::prepare($connection, "SELECT `parent` FROM `?` LIMIT 1", array(LYCHEE_TABLE_ALBUMS));
|
||||||
$result = Database::execute($connection, $query, "update_030103", __LINE__);
|
$result = Database::execute($connection, $query, "update_030200", __LINE__);
|
||||||
|
|
||||||
if ($result===false) {
|
if ($result===false) {
|
||||||
|
|
||||||
$query = Database::prepare($connection, "ALTER TABLE `?` ADD `parent` BIGINT(14) NOT NULL DEFAULT 0", array(LYCHEE_TABLE_ALBUMS));
|
$query = Database::prepare($connection, "ALTER TABLE `?` ADD `parent` BIGINT(14) NOT NULL DEFAULT 0", array(LYCHEE_TABLE_ALBUMS));
|
||||||
$result = Database::execute($connection, $query, "update_030103", __LINE__);
|
$result = Database::execute($connection, $query, "update_030200", __LINE__);
|
||||||
|
|
||||||
if ($result===false) {
|
if ($result===false) {
|
||||||
Log::error($database, 'update_030103', __LINE__, 'Could not update database (' . $database->error . ')');
|
Log::error($database, 'update_030200', __LINE__, 'Could not update database (' . $database->error . ')');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set version
|
// Set version
|
||||||
if (Database::setVersion($connection, '030103')===false) Response::error('Could not update version of database!');
|
// if (Database::setVersion($connection, '030200')===false) Response::error('Could not update version of database!');
|
||||||
|
|
||||||
?>
|
?>
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Lychee",
|
"name": "Lychee",
|
||||||
"version": "3.1.3",
|
"version": "3.2.0",
|
||||||
"description": "Self-hosted photo-management done right.",
|
"description": "Self-hosted photo-management done right.",
|
||||||
"authors": "Tobias Reich <tobias@electerious.com>",
|
"authors": "Tobias Reich <tobias@electerious.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
lychee = {
|
lychee = {
|
||||||
|
|
||||||
title : document.title,
|
title : document.title,
|
||||||
version : '3.1.3',
|
version : '3.2.0',
|
||||||
versionCode : '030103',
|
versionCode : '030200',
|
||||||
|
|
||||||
updatePath : '//update.electerious.com/index.json',
|
updatePath : '//update.electerious.com/index.json',
|
||||||
updateURL : 'https://github.com/electerious/Lychee',
|
updateURL : 'https://github.com/electerious/Lychee',
|
||||||
|
Loading…
Reference in New Issue
Block a user