IntegrityError running sql tests on MySQL/Postgres
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Jamie Lennox |
Bug Description
When running tests/test_
see: http://
It appears that this is because migration 020 imposes a foreign key restraint in downgrade that wasn't initially present.
Printing the table structure of 'metadata' before migration 020 gives:
Table('metadata', MetaData(
Column(u'user_id', VARCHAR(length=64), table=<metadata>, primary_key=True, nullable=False),
Column(
Column(u'data', MEDIUMTEXT(), table=<metadata>), schema=None)
Printing the table structure of 'metadata' after migration 020 downgrade gives:
Table('metadata', MetaData(
Column('user_id', String(length=64), ForeignKey(
Column('tenant_id', String(length=64), table=<metadata>, primary_key=True, nullable=False),
Column('data', Text(), table=<metadata>), schema=None)
This is not relevant to whether user_id should be a foreign key, simply that the downgrade does not match the upgrade.
tags: | added: grizzly-backport-potential |
Changed in keystone: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
importance: | Undecided → Medium |
Changed in keystone: | |
milestone: | havana-1 → 2013.2 |
tags: | removed: grizzly-backport-potential |
Fix proposed to branch: master /review. openstack. org/26985
Review: https:/