Sfoglia il codice sorgente

DB 업데이트 취소

잉여개발기 (SPDV) 2 anni fa
parent
commit
f401b43e47
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      route/tool/func.py

+ 1 - 5
route/tool/func.py

@@ -648,11 +648,7 @@ def update(ver_num, set_data):
 
         # create_data['history'] = ['id', 'title', 'data', 'date', 'ip', 'send', 'leng', 'hide', 'type']
         # create_data['rc'] = ['id', 'title', 'date', 'type']
-        if ver_num < 3500362:
-            curs.execute(db_change("drop index history_index"))
-            curs.execute(db_change("create index history_index on history (title, id, ip)"))
-
-        if ver_num < 3500363:
+        if ver_num == 3500362:
             curs.execute(db_change("drop index history_index"))
             curs.execute(db_change("create index history_index on history (title, ip)"))