diff --git a/lms/djangoapps/courseware/migrations/0011_csm_id_bigint.py b/lms/djangoapps/courseware/migrations/0011_csm_id_bigint.py index 047261f614..5c61d76706 100644 --- a/lms/djangoapps/courseware/migrations/0011_csm_id_bigint.py +++ b/lms/djangoapps/courseware/migrations/0011_csm_id_bigint.py @@ -15,7 +15,7 @@ class CsmBigInt(AlterField): level and the coursewarehistoryextended_studentmodulehistoryextended table is in a different database ''' def database_forwards(self, app_label, schema_editor, from_state, to_state): - if schema_editor.connection.is_in_memory_db(): + if hasattr(schema_editor.connection, 'is_in_memory_db') and schema_editor.connection.is_in_memory_db(): # sqlite3 doesn't support 'MODIFY', so skipping during tests return to_model = to_state.apps.get_model(app_label, self.model_name)