Remove the duplicated index in quota_classes
This eliminate the duplicated index warning on running db migration Change-Id: I574c832ef3ca91a401ff7d1ea2ab4de43b3e16b4
This commit is contained in:
parent
1c33d77170
commit
c1dd9b2c4d
@ -48,7 +48,7 @@ def upgrade():
|
||||
sa.Column('created_at', sa.DateTime()),
|
||||
sa.Column('updated_at', sa.DateTime()),
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('class_name', sa.String(length=255), index=True),
|
||||
sa.Column('class_name', sa.String(length=255)),
|
||||
sa.Column('resource', sa.String(length=255)),
|
||||
sa.Column('hard_limit', sa.Integer()),
|
||||
sa.Index('quota_classes_class_name_idx', 'class_name'),
|
||||
|
@ -496,6 +496,6 @@ class QuotaClass(Base):
|
||||
Index('quota_classes_class_name_idx', 'class_name'),
|
||||
)
|
||||
id = Column(Integer, primary_key=True, nullable=False)
|
||||
class_name = Column(String(255), index=True)
|
||||
class_name = Column(String(255))
|
||||
resource = Column(String(255))
|
||||
hard_limit = Column(Integer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user