def downgrade(migrate_engine):
 dialect = migrate_engine.url.get_dialect()
 if (dialect is not postgresql.dialect):
  meta = MetaData(bind=migrate_engine)
  for (table, column) in TABLE_COLUMNS:
   t = Table(table, meta, autoload=True)
   getattr(t.c, column).alter(type=String(43))

def downgrade ( migrate_engine ) : dialect = migrate_engine . url . get_dialect ( ) if ( dialect is not postgresql . dialect ) : meta = MetaData ( bind = migrate_engine ) for ( table , column ) in TABLE_COLUMNS : t = Table ( table , meta , autoload = True ) getattr ( t . c , column ) . alter ( type = String ( 43 ) )
create api-version specific endpoint tables .