OSDN Git Service

classify : fix DB.
[rec10/rec10-git.git] / rec10 / dbMySQL.py
index b40da12..01337bb 100644 (file)
@@ -1241,11 +1241,11 @@ vim         ")
             CREATE TABLE auto_classify \
             (\
             id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,\
-            title VARCHAR(1024),\
+            title VARCHAR(100),\
             frompath VARCHAR(1024),\
             topath VARCHAR(1024),\
             do BOOLEAN,\
-            UNIQUE key (title),\
+            UNIQUE key (title)\
             )')
         except Exception, inst:
             if not ((type(inst)==MySQLdb.ProgrammingError and inst[0]==1007)or(type(inst)==MySQLdb.OperationalError and inst[0]==1050)):