Compare commits
No commits in common. "45433fa21420895f68a18b430690af6937a961ec" and "b718e348366d6f6b2ca90f62f859ecef99a719c1" have entirely different histories.
45433fa214
...
b718e34836
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
currentdbversion=5
|
currentdbversion=4
|
||||||
checkDatabaseVersion() {
|
checkDatabaseVersion() {
|
||||||
local dbversion
|
local dbversion
|
||||||
if dbversion=$(Select atom version <<<"\"1\" = 1")
|
if dbversion=$(Select atom version <<<"\"1\" = 1")
|
||||||
|
|||||||
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
upgradedatabase_4_5() {
|
|
||||||
echo "Upgrading database to version 5... (backup is $database.bak_v4)"
|
|
||||||
cp "$database" "$database.bak_v4"
|
|
||||||
echo 'DROP TRIGGER force_destination_update_on_tag_update;' >&3
|
|
||||||
echo '
|
|
||||||
CREATE TRIGGER IF NOT EXISTS force_destination_update_on_tag_update
|
|
||||||
AFTER UPDATE OF
|
|
||||||
genre,
|
|
||||||
albumartist,
|
|
||||||
year,
|
|
||||||
album,
|
|
||||||
disc,
|
|
||||||
artist,
|
|
||||||
track,
|
|
||||||
title,
|
|
||||||
composer,
|
|
||||||
performer,
|
|
||||||
releasecountry,
|
|
||||||
rate,
|
|
||||||
channels,
|
|
||||||
bitrate,
|
|
||||||
bitdepth
|
|
||||||
ON tags
|
|
||||||
BEGIN
|
|
||||||
UPDATE destination_files SET last_change=0
|
|
||||||
WHERE source_file_id=old.source_file;
|
|
||||||
END;
|
|
||||||
' >&3
|
|
||||||
|
|
||||||
Update atom version 5 <<<"1 = 1"
|
|
||||||
}
|
|
||||||
@ -130,7 +130,6 @@ CREATE TRIGGER IF NOT EXISTS force_destination_update_on_tag_update
|
|||||||
title,
|
title,
|
||||||
composer,
|
composer,
|
||||||
performer,
|
performer,
|
||||||
releasecountry,
|
|
||||||
rate,
|
rate,
|
||||||
channels,
|
channels,
|
||||||
bitrate,
|
bitrate,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user