I have checked this again, and mythtv updatest he dbversion to 1005 but the tabels wern’t created! Why?? Any error in my code?

 


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Jochen K�hner
Gesendet: Samstag, 21. Mai 2005 21:58
An: 'Development of mythtv'
Betreff: [mythtv] Problems to Update database

 

If uptated the dbcheck.cpp of mythgame to the following  version:

At the Beginning I hav set the DB-Version to 1005.

 

….

};

        performActualUpdate(updates, "1003", dbver);

    }

 

    if (dbver == "1003")

    {

        const QString updates[] = {

QString("update mamemetadata set rom_path ='%1' WHERE rom_path ='';").arg(gConte

""

};

        performActualUpdate(updates, "1004", dbver);

    }

 

    if (dbver == "1004")

    {

        const QString updates[] = {

 

    "CREATE TABLE IF NOT EXISTS n64settings ("

    "romname VARCHAR(128) NOT NULL,"

    "usedefault BOLL NOT NULL,"

    "emulationmode VARCHAR(1) NOT NULL"

    "gfxplugin VARCHAR(1) NOT NULL"

    "audioplugin VARCHAR(1) NOT NULL"

    "inputplugin VARCHAR(1) NOT NULL"

    "rspplugin VARCHAR(1) NOT NULL"

    ");",

    "INSERT INTO n64settings (romname,usedefault,"

    "emulationmode,gfxplugin,audioplugin,"

    "inputplugin,rspplugin) VALUES"

    "(\"default\",1,\"1\",\"1\",\"1\",\"1\",\"1\");",

    ""

};

        performActualUpdate(updates, "1005", dbver);

 

    }

}

 

 

But If I run it. The Table fort he N64 Games is not beeing created!

_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to