Database models differs from migrations.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Viktor Serhieiev |
Bug Description
As models and migrations don't have any logical relation in code, so differences are possible. Furthermore in most of cases differences exists. The only way to solve this problem is using of specific test such as this https:/
This is a diff example form Keystone:
AssertionError: Models and migration scripts aren't in sync:
[ [ ( 'modify_nullable',
None,
'
'mapping_id',
{ 'existing_
True,
False)],
[ ( 'modify_nullable',
None,
'region',
'
{ 'existing_
False,
True)],
( 'remove_index',
Index(
[ ( 'modify_nullable',
None,
'token',
'valid',
{ 'existing_
True,
False)]]
Changed in keystone: | |
assignee: | Ilya Pekelny (i159) → Victor Sergeyev (vsergeyev) |
Fix proposed to branch: master /review. openstack. org/80618
Review: https:/