mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
plugins/data: fix index (nw)
This commit is contained in:
parent
31efff1eff
commit
101c667961
@ -57,7 +57,7 @@ function datfile.open(file, vertag, fixupcb)
|
|||||||
romset VARCHAR NOT NULL,
|
romset VARCHAR NOT NULL,
|
||||||
data INTEGER NOT NULL)]])
|
data INTEGER NOT NULL)]])
|
||||||
db:exec("CREATE TABLE \"" .. file .. "\" (data CLOB NOT NULL)")
|
db:exec("CREATE TABLE \"" .. file .. "\" (data CLOB NOT NULL)")
|
||||||
db:exec("CREATE INDEX typeval ON \"" .. file .. "_idx\"(type, val)")
|
db:exec("CREATE INDEX \"typeval_" .. file .. "\" ON \"" .. file .. "_idx\"(type, val)")
|
||||||
elseif not fh then
|
elseif not fh then
|
||||||
-- data in database but missing file, just use what we have
|
-- data in database but missing file, just use what we have
|
||||||
return read, dbver
|
return read, dbver
|
||||||
|
Loading…
Reference in New Issue
Block a user