wdiwtlt/core
Jonathan Bernard d2ed22d229 Rescanning now finds moved files by their hash.
More precisely, the MediaLibrary matches up files based on their file hash. If
it finds a files that matches an already known entry it doesn't create a new
entry, only updates the file path to the found file in the existing entry.

This is useful if files get re-organized or if an existing database is loaded
at an entirely new library root that contains mostly the same files (relocating
the library to another computer for example). This method preserves information
added to the database that was not originally present in the ID3 tags in the
media files (custom tags, name corrections, etc).
2016-03-16 05:52:41 -05:00
..
src/main Rescanning now finds moved files by their hash. 2016-03-16 05:52:41 -05:00
build.gradle Added missing dependency on javax.persistence API. 2016-02-13 23:27:51 -06:00
database.json Renamed module service->core. 2016-02-09 15:32:59 -06:00
README.md Renamed module service->core. 2016-02-09 15:32:59 -06:00
test.groovy Renamed module service->core. 2016-02-09 15:32:59 -06:00

Database

Uses [db-migrate][http://db-migrate.readthedocs.org/en/latest/] to manage database migrations. Migration scripts live if src/main/db.

Database environment configuration lives in database.json.

To initialize a new database do:

db-migrate -m src/main/db up