Fix for enum type docker_storage_driver
Create enum type "docker_storage_driver" for migration This is fixing oslo_db.exception.DBError: (psycopg2.ProgrammingError) type "docker_storage_driver" does not exist Closes-Bug: #1609776 Change-Id: I92d427e90bd73b4114d8688d3761cabac450fc9d
This commit is contained in:
parent
4799c13cd0
commit
e76ca364ab
@ -30,6 +30,7 @@ docker_storage_driver_enum = sa.Enum('devicemapper', 'overlay',
|
||||
|
||||
|
||||
def upgrade():
|
||||
docker_storage_driver_enum.create(op.get_bind(), checkfirst=True)
|
||||
op.add_column('baymodel', sa.Column('docker_storage_driver',
|
||||
docker_storage_driver_enum,
|
||||
nullable=True))
|
||||
|
Loading…
Reference in New Issue
Block a user