using blob for picked data

This commit is contained in:
lilydjwg 2013-02-12 20:44:24 +08:00
parent e63c3a7f69
commit 359ec109dd
2 changed files with 2 additions and 2 deletions

View file

@ -206,7 +206,7 @@ class EventHandler(pyinotify.ProcessEvent):
owner text,
mtime int,
state int,
info text)''')
info blob)''')
dirs = [os.path.join(base, x) for x in ('any', 'i686', 'x86_64')]
self.files = files = set()

View file

@ -27,7 +27,7 @@ def main(conffile):
assert getver(db) == '0.1', 'wrong database version'
input('Please stop the service and then press Enter.')
try:
db.execute('alter table pkginfo add info text')
db.execute('alter table pkginfo add info blob')
except sqlite3.OperationalError:
# the column is already there
pass