summaryrefslogtreecommitdiffstats
path: root/res/schema.xml
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2016-06-25 21:33:16 +0200
committerUwe Klotz <uwe_klotz@web.de>2016-06-25 21:33:16 +0200
commitb7626330b2a02608f2833da98e75b7a48642e487 (patch)
treeecc46f8b07214af972f82e822fc0096e86d55e22 /res/schema.xml
parent86c9a63702789fba8d410cd918e552ae4b0a91a8 (diff)
Revert DB schema update and reuse existing duration column
For newly created DB files use the correct type for the schema. Existing DB files are backwards compatible according to the documentation: https://www.sqlite.org/datatype3.html "Any column in an SQLite version 3 database, except an INTEGER PRIMARY KEY column, may be used to store a value of any storage class."
Diffstat (limited to 'res/schema.xml')
-rw-r--r--res/schema.xml12
1 files changed, 2 insertions, 10 deletions
diff --git a/res/schema.xml b/res/schema.xml
index 6749fa537b..e85570fb31 100644
--- a/res/schema.xml
+++ b/res/schema.xml
@@ -40,7 +40,7 @@ METADATA
genre varchar(32), tracknumber varchar(3),
location varchar(512) REFERENCES track_locations(location),
comment varchar(20), url varchar(256),
- duration integer,
+ duration float,
bitrate integer, samplerate integer,
cuepoint integer, bpm float,
wavesummaryhex blob,
@@ -113,7 +113,7 @@ METADATA
location integer REFERENCES track_locations(location),
comment varchar(256),
url varchar(256),
- duration integer,
+ duration float,
bitrate integer,
samplerate integer,
cuepoint integer,
@@ -416,12 +416,4 @@ METADATA
ALTER TABLE library ADD COLUMN tracktotal TEXT DEFAULT '//';
</sql>
</revision>
- <revision version="27" min_compatible="3">
- <description>
- Store track durations with subsecond precision in new column 'duration_real'.
- </description>
- <sql>
- ALTER TABLE library ADD COLUMN duration_real REAL DEFAULT duration;
- </sql>
- </revision>
</schema>