use autoincrement primary key, same as on Android

This commit is contained in:
Eric House 2013-01-28 07:02:33 -08:00
parent d78a4979da
commit 72e100ccac

View file

@ -34,7 +34,8 @@ openGamesDB( const char* dbName )
const char* createGamesStr =
"CREATE TABLE games ( "
"game BLOB"
"rowid INTEGER PRIMARY KEY AUTOINCREMENT"
",game BLOB"
",room VARCHAR(32)"
",ended INT(1)"
",turn INT(2)"