| Conditions | 2 |
| Total Lines | 5 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """concept_id is string |
||
| 23 | def downgrade(): |
||
| 24 | # Drop concepts which have non-integer concept_id |
||
| 25 | op.execute("DELETE FROM concept WHERE cast(cast(concept_id AS INTEGER) AS TEXT) != concept_id") |
||
| 26 | with op.batch_alter_table('concept') as batch_op: |
||
| 27 | batch_op.alter_column('concept_id', existing_type=sa.String, type_=sa.Integer) |
||
| 28 |