From 359ec109dd93f23649d123f5d7ad655927c7a958 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 12 Feb 2013 20:44:24 +0800 Subject: [PATCH] using blob for picked data --- repomon.py | 2 +- scripts/upgrade_from_0.1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repomon.py b/repomon.py index d5743bc..6463c76 100755 --- a/repomon.py +++ b/repomon.py @@ -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() diff --git a/scripts/upgrade_from_0.1.py b/scripts/upgrade_from_0.1.py index 666fe80..d18347a 100755 --- a/scripts/upgrade_from_0.1.py +++ b/scripts/upgrade_from_0.1.py @@ -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