Hello,
I've just tried to upgrade from RC2->RC3 which went smoothly until I tried to start "Tv-Server Configuration" and then I got an error message along the lines of "Failed to update database".
On inspection of the log files below it appears that there is a case discrepancy, in that the schema is created using capitalized table names yet the upgrade script, or at least the first statement in the upgrade script is not.
In summary a schema table is created as "Card" then the upgrade script attempts to add a new column to "card".
I tried removing my old database to make it start from scratch but it appears that RC3 regenerates the RC2 schema then tries to update it which puts me back at square one. Database is MySQL 5 running on a Ubuntu Linux box so is case sensitive. Filed as a bug report because I presume there will be a number of others affected by this.
Relevant bit of log files, or at least I presume these are the only relevant part, let me know if you need more.
Thanks & Regards
Justin
Log excerpts--->
2008-10-11 10:15:30.217375 [SetupTv]: Exec SQL: DROP DATABASE IF EXISTS MpTvDbRC2;CREATE DATABASE IF NOT EXISTS MpTvDbRC2;USE MpTvDbRC2;
2008-10-11 10:15:30.233000 [SetupTv]: Exec SQL: CREATE TABLE `CanceledSchedule` (`idCanceledSchedule` int(11) NOT NULL auto_increment,`idSchedule` int(11) NOT NULL,`cancelDateTime` datetime NOT NULL,PRIMARY KEY (`idCanceledSchedule`),KEY `FK_CanceledSchedule_Schedule` (`idSchedule`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
2008-10-11 10:15:30.233000 [SetupTv]: Exec SQL: CREATE TABLE `Card` (`idCard` int(11) NOT NULL auto_increment,`devicePath` varchar(2000) NOT NULL,`name` varchar(200) NOT NULL,`priority` int(11) NOT NULL,`grabEPG` bit(1) NOT NULL,`lastEpgGrab` datetime NOT NULL,`recordingFolder` varchar(256) NOT NULL,`idServer` int(11) NOT NULL,`enabled` bit(1) NOT NULL,`camType` int(11) NOT NULL,`timeshiftingFolder` varchar(256) NOT NULL,`recordingFormat` int(11) NOT NULL,`decryptLimit` int(11) NOT NULL,PRIMARY KEY (`idCard`),KEY `FK_Card_Server` (`idServer`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
2008-10-11 10:15:30.248625 [SetupTv]: Exec SQL: CREATE TABLE `CardGroup` (`idCardGroup` int(11) NOT NULL auto_increment,`name` varchar(255) NOT NULL,PRIMARY KEY (`idCardGroup`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
...<SNIP MORE TABLE CREATE STATEMENTS>...
2008-10-11 10:15:30.514250 [SetupTv]: Exec SQL: INSERT INTO `Version` (`idVersion`,`versionNumber`) VALUES(1,38);
2008-10-11 10:15:30.514250 [SetupTv]: - Database created.
2008-10-11 10:15:30.529875 [SetupTv]: ---- upgrade database schema ----
2008-10-11 10:15:30.545500 [SetupTv]: Exec SQL: USE MpTvDbRC2;ALTER TABLE `card`ADD COLUMN `preload` bit(1) NOT NULL;UPDATE `Version` SET `versionNumber`=39;
2008-10-11 10:15:30.545500 [SetupTv]: ********* SQL statement failed! *********
2008-10-11 10:15:30.545500 [SetupTv]: ********* Error reason: #42S02Table 'MpTvDbRC2.card' doesn't exist
2008-10-11 10:15:30.545500 [SetupTv]: ********* Error code: 1146 *********
<---
TV-Server Version: RC3
MediaPortal Version: RC3
MediaPortal Skin:
Windows Version: XP x32 SP3
CPU Type:
HDD:
Memory:
Motherboard:
Video Card:
Video Card Driver:
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection:
I've just tried to upgrade from RC2->RC3 which went smoothly until I tried to start "Tv-Server Configuration" and then I got an error message along the lines of "Failed to update database".
On inspection of the log files below it appears that there is a case discrepancy, in that the schema is created using capitalized table names yet the upgrade script, or at least the first statement in the upgrade script is not.
In summary a schema table is created as "Card" then the upgrade script attempts to add a new column to "card".
I tried removing my old database to make it start from scratch but it appears that RC3 regenerates the RC2 schema then tries to update it which puts me back at square one. Database is MySQL 5 running on a Ubuntu Linux box so is case sensitive. Filed as a bug report because I presume there will be a number of others affected by this.
Relevant bit of log files, or at least I presume these are the only relevant part, let me know if you need more.
Thanks & Regards
Justin
Log excerpts--->
2008-10-11 10:15:30.217375 [SetupTv]: Exec SQL: DROP DATABASE IF EXISTS MpTvDbRC2;CREATE DATABASE IF NOT EXISTS MpTvDbRC2;USE MpTvDbRC2;
2008-10-11 10:15:30.233000 [SetupTv]: Exec SQL: CREATE TABLE `CanceledSchedule` (`idCanceledSchedule` int(11) NOT NULL auto_increment,`idSchedule` int(11) NOT NULL,`cancelDateTime` datetime NOT NULL,PRIMARY KEY (`idCanceledSchedule`),KEY `FK_CanceledSchedule_Schedule` (`idSchedule`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
2008-10-11 10:15:30.233000 [SetupTv]: Exec SQL: CREATE TABLE `Card` (`idCard` int(11) NOT NULL auto_increment,`devicePath` varchar(2000) NOT NULL,`name` varchar(200) NOT NULL,`priority` int(11) NOT NULL,`grabEPG` bit(1) NOT NULL,`lastEpgGrab` datetime NOT NULL,`recordingFolder` varchar(256) NOT NULL,`idServer` int(11) NOT NULL,`enabled` bit(1) NOT NULL,`camType` int(11) NOT NULL,`timeshiftingFolder` varchar(256) NOT NULL,`recordingFormat` int(11) NOT NULL,`decryptLimit` int(11) NOT NULL,PRIMARY KEY (`idCard`),KEY `FK_Card_Server` (`idServer`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
2008-10-11 10:15:30.248625 [SetupTv]: Exec SQL: CREATE TABLE `CardGroup` (`idCardGroup` int(11) NOT NULL auto_increment,`name` varchar(255) NOT NULL,PRIMARY KEY (`idCardGroup`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
...<SNIP MORE TABLE CREATE STATEMENTS>...
2008-10-11 10:15:30.514250 [SetupTv]: Exec SQL: INSERT INTO `Version` (`idVersion`,`versionNumber`) VALUES(1,38);
2008-10-11 10:15:30.514250 [SetupTv]: - Database created.
2008-10-11 10:15:30.529875 [SetupTv]: ---- upgrade database schema ----
2008-10-11 10:15:30.545500 [SetupTv]: Exec SQL: USE MpTvDbRC2;ALTER TABLE `card`ADD COLUMN `preload` bit(1) NOT NULL;UPDATE `Version` SET `versionNumber`=39;
2008-10-11 10:15:30.545500 [SetupTv]: ********* SQL statement failed! *********
2008-10-11 10:15:30.545500 [SetupTv]: ********* Error reason: #42S02Table 'MpTvDbRC2.card' doesn't exist
2008-10-11 10:15:30.545500 [SetupTv]: ********* Error code: 1146 *********
<---
TV-Server Version: RC3
MediaPortal Version: RC3
MediaPortal Skin:
Windows Version: XP x32 SP3
CPU Type:
HDD:
Memory:
Motherboard:
Video Card:
Video Card Driver:
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection: