From fb73e74ff7acde7a9458efae01d669b0b52b4f0e Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Wed, 15 Dec 2010 14:41:36 +0000 Subject: [PATCH] schema upgrade to remove commas from tags --- src/calibre/library/schema_upgrades.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/library/schema_upgrades.py b/src/calibre/library/schema_upgrades.py index e35c8521ce..15c6f5c800 100644 --- a/src/calibre/library/schema_upgrades.py +++ b/src/calibre/library/schema_upgrades.py @@ -425,3 +425,7 @@ class SchemaUpgrade(object): ids = [(x[0],) for x in data if has_cover(x[1])] self.conn.executemany('UPDATE books SET has_cover=1 WHERE id=?', ids) + def upgrade_version_15(self): + 'Remove commas from tags' + self.conn.execute('UPDATE tags SET name=REPLACE(name, \',\', \';\')') +