잉여개발기 (SPDV) před 3 roky
rodič
revize
c9658bb7c2
3 změnil soubory, kde provedl 7 přidání a 3 odebrání
  1. 1 1
      app.py
  2. 4 0
      route/tool/func.py
  3. 2 2
      version.json

+ 1 - 1
app.py

@@ -134,7 +134,7 @@ with get_db_connect() as conn:
                 if db_pass == 0:
                     raise
         try:
-            curs.execute(db_change("create index history_index on history (title)"))
+            curs.execute(db_change("create index history_index on history (title, ip)"))
         except:
             pass
 

+ 4 - 0
route/tool/func.py

@@ -630,6 +630,10 @@ def update(ver_num, set_data):
             "update other set coverage = '' where coverage is null"
         ))
 
+    if ver_num < 3500358:
+        curs.execute(db_change("drop index history_index"))
+        curs.execute(db_change("create index history_index on history (title, ip)"))
+
     conn.commit()
     
     # 아이피 상태인 이메일 제거 예정

+ 2 - 2
version.json

@@ -1,7 +1,7 @@
 {
     "beta" : {
-        "r_ver" : "v3.4.6-RC2-dev125",
-        "c_ver" : "3500357",
+        "r_ver" : "v3.4.6-RC2-dev126",
+        "c_ver" : "3500358",
         "s_ver" : "3500111"
     }
 }