From b25aa74f1ffb6da7c11546668b03a36f0115ab33 Mon Sep 17 00:00:00 2001 From: Drave Robber Date: Sun, 4 Nov 2012 12:07:17 +0200 Subject: [PATCH] fontyourface_update_7203 did not work properly on some databases. --- fontyourface.install | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/fontyourface.install b/fontyourface.install index eedf3f0..de92068 100644 --- a/fontyourface.install +++ b/fontyourface.install @@ -276,11 +276,21 @@ function fontyourface_update_7202() { */ function fontyourface_update_7203() { - db_query("UPDATE {fontyourface_font} SET css_family = REPLACE(css_family, '\'', '');"); + // Removed - this will not work on SQLite databases. + //db_query("UPDATE {fontyourface_font} SET css_family = REPLACE(css_family, '\'', '');"); } // fontyourface_update_7203 /** + * Remove single quotes from CSS selectors - properly this time. + */ +function fontyourface_update_7204() { + db_update('fontyourface_font') + ->expression('css_family', "REPLACE(css_family, '''', '')") + ->execute(); +} + +/** * Implements hook_uninstall(). */ function fontyourface_uninstall() { -- 1.7.4.1