2012-12-15 05:42:39.193543 [SetupTv(1)]: ---- upgrade database schema ----
2012-12-15 05:42:39.199544 [SetupTv(1)]: Exec SQL: USE MpTvDb;ALTER TABLE `Channel` ADD COLUMN `channelNumber` int(11) NOT NULL DEFAULT 10000;UPDATE Channel c set c.channelNumber = (SELECT t.channelNumber FROM TuningDetail t WHERE t.idChannel = c.idChannel ORDER BY t.idTuning limit 1);UPDATE Version SET versionNumber=61;
2012-12-15 05:42:39.200544 [SetupTv(1)]: ********* SQL statement failed! *********
2012-12-15 05:42:39.201544 [SetupTv(1)]: ********* Error reason: Duplicate column name 'channelNumber'
2012-12-15 05:42:39.201544 [SetupTv(1)]: ********* Error code: 1060 *********
We do not provide support for upgrading from custom/unofficial builds because the DB state can't be guaranteed. Please keep this in mind before trying such builds in the future. It is sometimes hard to wait for the release, but it saves problems like this.No
But you can help me anyway?
ALTER TABLE Channel DROP COLUMN ChannelNumber;
mysql -u root -p -e "ALTER TABLE Channel DROP COLUMN ChannelNumber;" mptvdb
use MpTvDb;
ALTER TABLE Channel DROP COLUMN ChannelNumber;