From a713ad16d3aeae0837eb0198ed8ca4676045994e Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 25 Mar 2012 21:53:24 +0200 Subject: [PATCH] Migrate! Fixes some more objects to the new API. --- .../0011_typeclass_and_cmdset_to_new_api_default.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/objects/migrations/0011_typeclass_and_cmdset_to_new_api_default.py b/src/objects/migrations/0011_typeclass_and_cmdset_to_new_api_default.py index 538eee9e0..ead81ffac 100644 --- a/src/objects/migrations/0011_typeclass_and_cmdset_to_new_api_default.py +++ b/src/objects/migrations/0011_typeclass_and_cmdset_to_new_api_default.py @@ -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