Merge "Fix the syntax issue on creating table `endpoint_group`"
This commit is contained in:
commit
3153f0eaf7
|
@ -24,7 +24,7 @@ def upgrade(migrate_engine):
|
|||
endpoint_group_table = sql.Table(
|
||||
'endpoint_group',
|
||||
meta,
|
||||
sql.Column('id', sql.String(64), nullable=False),
|
||||
sql.Column('id', sql.String(64), primary_key=True),
|
||||
sql.Column('name', sql.String(255), nullable=False),
|
||||
sql.Column('description', sql.Text, nullable=True),
|
||||
sql.Column('filters', sql.Text(), nullable=False))
|
||||
|
@ -45,7 +45,7 @@ def downgrade(migrate_engine):
|
|||
meta = sql.MetaData()
|
||||
meta.bind = migrate_engine
|
||||
# Operations to reverse the above upgrade go here.
|
||||
for table_name in ['endpoint_group',
|
||||
'project_endpoint_group']:
|
||||
for table_name in ['project_endpoint_group',
|
||||
'endpoint_group']:
|
||||
table = sql.Table(table_name, meta, autoload=True)
|
||||
table.drop()
|
||||
|
|
Loading…
Reference in New Issue