From e10ef7a550e8084cb9d0535fe64db2c2952b1b15 Mon Sep 17 00:00:00 2001
From: theduke <chris@theduke.at>
Date: Fri, 10 Aug 2012 15:01:34 +0200
Subject: [PATCH] Issue #1715124 by theduke: Changed config fields type to blob and importer config size to big.

---
 feeds.install |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/feeds.install b/feeds.install
index 7a3322e..932bbf7 100644
--- a/feeds.install
+++ b/feeds.install
@@ -33,7 +33,8 @@ function feeds_schema() {
         'description' => 'Id of the fields object.',
       ),
       'config' => array(
-        'type' => 'text',
+        'type' => 'blob',
+        'size' => 'big',
         'not null' => FALSE,
         'description' => 'Configuration of the feeds object.',
         'serialize' => TRUE,
@@ -59,7 +60,8 @@ function feeds_schema() {
         'description' => 'Node nid if this particular source is attached to a feed node.',
       ),
       'config' => array(
-        'type' => 'text',
+        'type' => 'blob',
+        'size' => 'big',
         'not null' => FALSE,
         'description' => 'Configuration of the source.',
         'serialize' => TRUE,
@@ -538,3 +540,24 @@ function feeds_update_7206() {
     'serialize' => TRUE,
   ));
 }
+
+/**
+ * Change config fields type to blob size to big.
+ */
+function feeds_update_7207() {
+  db_change_field('feeds_importer', 'config', 'config', array(
+    'type' => 'blob',
+    'size' => 'big',
+    'not null' => FALSE,
+    'description' => 'Configuration of the feeds object.',
+    'serialize' => TRUE,
+  ));
+
+  db_change_field('feeds_source', 'config', 'config', array(
+    'type' => 'blob',
+    'size' => 'big',
+    'not null' => FALSE,
+    'description' => 'Configuration of the feeds object.',
+    'serialize' => TRUE,
+  ));
+}
-- 
1.7.2.5

