Commit Graph

66 Commits

Author SHA1 Message Date
Nils Asmussen
ef9040870a Added basic subalbum support.
That is, albums can now contain other albums, which are shown at
the top of the album view. This required some changes to album.js
and the contextMenu.js, because this view contains now both
photos and albums.

The contextMenu on this view has been kept simple by requiring
the user to select either only albums or only photos, but not
a mixture of both.

This feature required a database change, so that the version
has been updated to 3.1.3.

At the moment, album and photo operations (make public, download,
delete, merge) are still "flat", i.e. don't respect the album
hierarchy.
2016-07-29 22:36:41 +02:00
Tobias Reich
659a570b2e Save database update version for 3.1.2 2016-06-12 17:44:33 +02:00
Tobias Reich
a38a5ded4d Use bigint(14) for album if in photo table #533 2016-06-11 17:12:59 +02:00
Tobias Reich
5c4f3413b1 Updated default tables to reflect changes made in #533 2016-06-11 17:12:42 +02:00
Tobias Reich
2ce58d2821 Fixed error when executing update script multiple times #533 2016-05-02 20:44:41 +02:00
Tobias Reich
a5c47cf022 Use array() instead of shorthand as done in the other scripts 2016-05-02 20:04:41 +02:00
Tobias Reich
c52e93b7ac Small syntax adjustment to #533 2016-05-02 19:51:29 +02:00
Quentin Ligier
73a00aafaa SQL structure changes
See #531
2016-04-27 10:10:44 +02:00
Tobias Reich
2b7dcb6795 Finalized database update for version 3.1 2016-03-24 17:43:14 +01:00
Tobias Reich
976635254e Album id now based on the current microtime #27 2016-03-12 23:51:33 +01:00
Tobias Reich
4c130211b1 Replaced return false in database updates with error messages 2016-02-14 14:26:05 +01:00
Tobias Reich
46f520e1fe Removed medium option
Lychee will automatically create medium-sized photos when the photo ist big enough and Imagick installed and activated. It's no longer possible to deactivate it.
2016-02-14 14:09:49 +01:00
Tobias Reich
c4c2e9169e Removed thumb quality setting 2016-02-01 09:44:23 +01:00
Tobias Reich
7b86a737af Added Database::execute to run a query
Database::execute automatically logs errors
2016-01-31 18:49:31 +01:00
Tobias Reich
64e0d66d83 Improved if conditions 2016-01-31 15:44:54 +01:00
Tobias Reich
4c3df96e9e Removed unnecessary namespace 2016-01-30 23:16:59 +01:00
Tobias Reich
fe2c56422d Fixed database updates 2016-01-30 23:07:59 +01:00
Tobias Reich
e89203bcb1 // for comments and spaces for alignment 2016-01-30 23:03:43 +01:00
Tobias Reich
84c4a5b267 Removed version from sql files 2016-01-24 22:15:04 +01:00
Tobias Reich
17e5dba979 Singleton pattern for Settings::get(), Database::get() and Plugins::get()
What could properly go wrong? ¯\_(ツ)_/¯
2016-01-24 22:14:20 +01:00
Tobias Reich
0dffa5c765 Dropped update support for versions < 2.7 2016-01-24 18:38:26 +01:00
Tobias Reich
9e52f93a59 Removed database updates for versions <= 2.5.0 2016-01-24 16:51:09 +01:00
Tobias Reich
f925e118c2 Generate identifier when creating the database, not on update
This fixes the broken 'setLogin' when using Lychee for the first time.
2015-06-28 17:47:19 +02:00
Tobias Reich
e36fd87f5a Added skipDuplicates to default settings table 2015-06-28 17:29:03 +02:00
Tobias Reich
feefa9c5a0 Updated version, updated deps and added skip duplicates #367 2015-06-27 21:03:27 +02:00
Tobias Reich
275e653b1a Generate identifier even when db entry exists #344 2015-05-14 21:34:25 +02:00
Tobias Reich
aedd378f98 Added identifier #344 2015-05-14 20:43:51 +02:00
Tobias Reich
6b4f3546f9 Updated default tables and changed sorting var/entry to sortingPhotos #98 2015-05-14 17:47:17 +02:00
Tobias Reich
90ac81acf1 Added album sorting #98 2015-05-14 17:20:33 +02:00
Tobias Reich
7e885425dc Allow an album and photo title length of 50 chars #332 2015-05-10 23:01:07 +02:00
Tobias Reich
cca2b09d08 Fixed incorrect version in comment 2015-02-08 15:36:29 +01:00
Tobias Reich
3f4bfe253d Removed useless md5 hashing in front-end and added username hashing in back-end 2015-02-08 15:36:13 +01:00
Tobias Reich
0c97151f4f Added direct access protection to database updates 2015-02-08 15:29:06 +01:00
Tobias Reich
0630554789 Updated copyright 2015-02-01 22:08:37 +01:00
Tobias Reich
b6123c8257 Add medium folder when missing #67 2014-11-06 23:21:33 +01:00
Tobias Reich
09553f2262 Comment cleanup 2014-10-21 13:40:33 +02:00
Tobias Reich
9e42e74b3a ntermediate sized images for small screen devices #67
- Updated version
- Update database
- Write medium to database
- Delete medium on photo delete
- Show medium depending on screen
2014-10-11 16:09:10 +02:00
Tobias Reich
b458ff2a85 Fixed wrong version in database update error 2014-10-11 16:04:43 +02:00
Tobias Reich
e20ba354da Database::setVersion to update the database version 2014-08-30 19:25:01 +02:00
cternes
13dea68c88 Replaced new array syntax with old one to support older php versions 2014-08-30 07:05:26 +02:00
Tobias Reich
0296b313ee Added option to disable imagick (#211) 2014-08-30 00:11:26 +02:00
Tobias Reich
a5722a79c6 Converted database updates to prepared statements (#38 #214 #196) 2014-08-29 23:49:52 +02:00
Tobias Reich
9f11875e39 Create tables with prefix (#38 #214 #196) 2014-08-29 23:08:18 +02:00
Tobias Reich
8b4ef96146 Added update for database for version 2.6.2 2014-08-27 21:17:05 +02:00
Tobias Reich
a613ee58c7 Default ist downloadable 2014-08-22 20:52:23 +02:00
Tobias Reich
b23360d6ce Added downloadable to database and backend 2014-08-09 17:57:31 +02:00
Tobias Reich
7b2414695c Fixed wrong version in error log 2014-07-20 15:24:46 +02:00
Tobias Reich
c064c1c0e4 Version push and add checksum for existing users #179 2014-07-05 00:39:31 +02:00
pyro2927
ba852f8a03 Adding in photo checksum to detect dupes 2014-07-02 14:29:34 -05:00
Tobias Reich
891d222a33 Added Log to update_020100 2014-05-31 12:06:26 +02:00