server/migractions.py
branchstable
changeset 6189 9fa02f352c8c
parent 6187 348c7d93cda3
child 6190 564a6028067c
--- a/server/migractions.py	Tue Sep 07 23:23:16 2010 +0200
+++ b/server/migractions.py	Tue Sep 07 23:24:45 2010 +0200
@@ -710,13 +710,8 @@
         targeted type is known
         """
         instschema = self.repo.schema
-        assert not etype in instschema
-        #     # XXX (syt) plz explain: if we're adding an entity type, it should
-        #     # not be there...
-        #     eschema = instschema[etype]
-        #     if eschema.final:
-        #         instschema.del_entity_type(etype)
-        # else:
+        assert not etype in instschema, \
+               '%s already defined in the instance schema' % etype
         eschema = self.fs_schema.eschema(etype)
         confirm = self.verbosity >= 2
         groupmap = self.group_mapping()