1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

Add dbmigrate scrip, other misc work

This commit is contained in:
Leo Franchi
2011-09-25 08:16:50 -04:00
parent d60b38b3aa
commit d7e68f3a1d
23 changed files with 683 additions and 19 deletions

View File

@@ -0,0 +1,10 @@
-- Script to migate from db version 6 to 27
-- Nothing to do
CREATE TABLE IF NOT EXISTS collection_attributes (
id INTEGER REFERENCES source(id) ON DELETE CASCADE ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED, -- source id, null for local source
k TEXT NOT NULL,
v TEXT NOT NULL
);
UPDATE settings SET v = '27' WHERE k == 'schema_version';