Migrate! Fixes some more objects to the new API.
This commit is contained in:
parent
81980605b4
commit
a713ad16d3
1 changed files with 10 additions and 0 deletions
|
|
@ -16,6 +16,16 @@ class Migration(DataMigration):
|
||||||
if obj.db_typeclass_path == "game.gamesrc.objects.baseobjects.Character":
|
if obj.db_typeclass_path == "game.gamesrc.objects.baseobjects.Character":
|
||||||
obj.db_typeclass_path = "src.objects.objects.Character"
|
obj.db_typeclass_path = "src.objects.objects.Character"
|
||||||
obj.save()
|
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:
|
except utils.DatabaseError:
|
||||||
"We are starting from scratch. Ignore."
|
"We are starting from scratch. Ignore."
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue