-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from electerious/develop
Lychee 3.0.3
- Loading branch information
Showing
15 changed files
with
144 additions
and
58 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
### | ||
# @name Update to version 3.0.3 | ||
# @copyright 2015 by Tobias Reich | ||
### | ||
|
||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); | ||
|
||
# Add skipDuplicates to settings | ||
$query = Database::prepare($database, "SELECT `key` FROM `?` WHERE `key` = 'skipDuplicates' LIMIT 1", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = $database->query($query); | ||
if ($result->num_rows===0) { | ||
$query = Database::prepare($database, "INSERT INTO `?` (`key`, `value`) VALUES ('skipDuplicates', '0')", array(LYCHEE_TABLE_SETTINGS)); | ||
$result = $database->query($query); | ||
if (!$result) { | ||
Log::error($database, 'update_030003', __LINE__, 'Could not update database (' . $database->error . ')'); | ||
return false; | ||
} | ||
} | ||
|
||
# Set version | ||
if (Database::setVersion($database, '030003')===false) return false; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "Lychee", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Self-hosted photo-management done right.", | ||
"authors": "Tobias Reich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -10,15 +10,18 @@ | |
"url": "https://github.com/electerious/Lychee.git" | ||
}, | ||
"devDependencies": { | ||
"basiccontext": "^3.1.2", | ||
"gulp": "^3.9.0", | ||
"gulp-autoprefixer": "2.3.1", | ||
"gulp-babel": "^5.1.0", | ||
"gulp-concat": "^2.5.2", | ||
"gulp-inject": "^1.2.0", | ||
"gulp-load-plugins": "^0.10.0", | ||
"gulp-minify-css": "^1.1.5", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-inject": "^1.3.1", | ||
"gulp-load-plugins": "^1.0.0-rc", | ||
"gulp-minify-css": "^1.2.0", | ||
"gulp-rimraf": "^0.1.1", | ||
"gulp-sass": "^2.0.1", | ||
"gulp-uglify": "^1.2.0" | ||
"gulp-sass": "^2.0.3", | ||
"gulp-uglify": "^1.2.0", | ||
"jquery": "^2.1.4", | ||
"mousetrap": "^1.5.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.