make sure to copy media table on saveas

This commit is contained in:
Damien Elmes 2009-01-07 09:47:54 +09:00
parent 57a49e9b08
commit afa9565d12

View file

@ -1509,6 +1509,7 @@ Return new path, relative to media dir."""
s("insert into new.cardsDeleted select * from cardsDeleted") s("insert into new.cardsDeleted select * from cardsDeleted")
s("insert into new.models select * from models") s("insert into new.models select * from models")
s("insert into new.stats select * from stats") s("insert into new.stats select * from stats")
s("insert into new.media select * from media")
s("detach database new") s("detach database new")
# close ourselves # close ourselves
self.s.commit() self.s.commit()