Ticket #6802: mythplugins-mythmusic-mythmusic-dbcheck_cpp-new.patch
File mythplugins-mythmusic-mythmusic-dbcheck_cpp-new.patch, 1.4 KB (added by , 15 years ago) |
---|
-
mythmusic/mythmusic/dbcheck.cpp
373 373 "CREATE TABLE music_playlists (" 374 374 " playlist_id int(11) unsigned NOT NULL auto_increment PRIMARY KEY," 375 375 " playlist_name varchar(255) NOT NULL default ''," 376 " playlist_songs text NOT NULL default '',"376 " playlist_songs text NOT NULL," 377 377 " last_accessed timestamp NOT NULL," 378 378 " length int(11) unsigned NOT NULL default '0'," 379 379 " songcount smallint(8) unsigned NOT NULL default '0'," … … 381 381 ");", 382 382 "CREATE TABLE music_songs (" 383 383 " song_id int(11) unsigned NOT NULL auto_increment PRIMARY KEY," 384 " filename text NOT NULL default '',"384 " filename text NOT NULL," 385 385 " name varchar(255) NOT NULL default ''," 386 386 " track smallint(6) unsigned NOT NULL default '0'," 387 387 " artist_id int(11) unsigned NOT NULL default '0'," … … 479 479 const QString updates[] = { 480 480 "ALTER TABLE music_songs MODIFY lastplay DATETIME DEFAULT NULL;", 481 481 "CREATE TABLE music_directories (directory_id int(20) NOT NULL AUTO_INCREMENT " 482 "PRIMARY KEY, path TEXT NOT NULL DEFAULT '', "482 "PRIMARY KEY, path TEXT NOT NULL, " 483 483 "parent_id INT(20) NOT NULL DEFAULT '0') ;", 484 484 "INSERT IGNORE INTO music_directories (path) SELECT DISTINCT" 485 485 " SUBSTRING(filename FROM 1 FOR INSTR(filename, "