=== modified file 'includes/database/sqlite/schema.inc'
--- includes/database/sqlite/schema.inc	2010-10-22 15:18:56 +0000
+++ includes/database/sqlite/schema.inc	2010-12-10 23:28:35 +0000
@@ -380,11 +379,28 @@ class DatabaseSchema_sqlite extends Data
       }
       if (isset($mapped_fields[$type])) {
         list($type, $size) = explode(':', $mapped_fields[$type]);
+        $default = $row->dflt_value;
+        // The default is always a PHP string, if the default is a string in
+        // SQLite too then it arrives quotes, remove them.
+        if ($default[0] == "'") {
+          // Single quotes are escaped by storing them doubled-up. De-escape
+          // them to avoid the driver double escaping them.
+          $default = str_replace("''", "'", substr($default, 1, -1));
+        }
+        elseif (strtoupper($default) == 'NULL') {
+          $default = NULL;
+        }
+        elseif ($type == 'INTEGER') {
+          $default = (int) $default;
+        }
+        elseif ($type == 'FLOAT') {
+          $default = (float) $default;
+        }
         $schema['fields'][$row->name] = array(
           'type' => $type,
           'size' => $size,
           'not null' => !empty($row->notnull),
-          'default' => trim($row->dflt_value, "'"),
+          'default' => $default,
         );
         if ($length) {
           $schema['fields'][$row->name]['length'] = $length;

