'Column names that are SQL keywords shouldn\'t cause problems when used
in migrations (#22168).'

def test_column_name_quoting(self):

    project_state = self.set_up_test_model('test_regr22168')
    operation = migrations.AddField('Pony', 'order', models.IntegerField(default=0))
    new_state = project_state.clone()
    operation.state_forwards('test_regr22168', new_state)
    with connection.schema_editor() as editor:
        operation.database_forwards('test_regr22168', editor, project_state, new_state)
    self.assertColumnExists('test_regr22168_pony', 'order')
