diff --git a/anki/models.py b/anki/models.py index c977ca842..3fd1b7691 100644 --- a/anki/models.py +++ b/anki/models.py @@ -273,6 +273,10 @@ select id from cards where nid in (select id from notes where mid = ?)""", f['ord'] = c def _transformFields(self, m, fn): + if not self.col.db.scalar( + "select 1 from notes where mid = ? limit 1", m['id']): + # don't bump schema for a new model + return self.col.modSchema() r = [] for (id, flds) in self.col.db.execute(