Migrate! Fixes some more objects to the new API.

This commit is contained in:
Griatch 2012-03-25 21:53:24 +02:00
parent 81980605b4
commit a713ad16d3

View file

@ -16,6 +16,16 @@ class Migration(DataMigration):
if obj.db_typeclass_path == "game.gamesrc.objects.baseobjects.Character":
obj.db_typeclass_path = "src.objects.objects.Character"
obj.save()
if obj.db_typeclass_path == "game.gamesrc.objects.baseobjects.Object":
obj.db_typeclass_path = "src.objects.objects.Object"
obj.save()
if obj.db_typeclass_path == "game.gamesrc.objects.baseobjects.Room":
obj.db_typeclass_path = "src.objects.objects.Room"
obj.save()
if obj.db_typeclass_path == "game.gamesrc.objects.baseobjects.Exit":
obj.db_typeclass_path = "src.objects.objects.Exit"
obj.save()
except utils.DatabaseError:
"We are starting from scratch. Ignore."
pass