X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tools%2Fupgrade-db.py;h=4c9d1d51511e5e9de7fea3f5cc126751a9401769;hb=1e4558f1e8eaec5f69f3832a8599d0dfa1531f00;hp=b7614f01d41fb6ab3382fb9bcac139e63eba3efc;hpb=89728abc8596c6a1c5b97d9115e04132bad6bc47;p=plcapi.git diff --git a/tools/upgrade-db.py b/tools/upgrade-db.py index b7614f0..4c9d1d5 100755 --- a/tools/upgrade-db.py +++ b/tools/upgrade-db.py @@ -134,7 +134,7 @@ def create_item_from_schema(item_name): def fix_row(row, table_name, table_fields): - if table_name in ['nodenetworks']: + if table_name in ['interfaces']: # convert str bwlimit to bps int bwlimit_index = table_fields.index('bwlimit') if isinstance(row[bwlimit_index], int):