From 6dd3740f0eb678889474e34bb73b6f7b400472e9 Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Wed, 27 Feb 2013 21:51:45 -0500
Subject: [PATCH] Issue #1905870 by Berdir, Eric_A: Make feeds/feed items
 multilingual.

---
 core/modules/aggregator/aggregator.install | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/core/modules/aggregator/aggregator.install b/core/modules/aggregator/aggregator.install
index e145abe47488..54f905300ce9 100644
--- a/core/modules/aggregator/aggregator.install
+++ b/core/modules/aggregator/aggregator.install
@@ -319,6 +319,7 @@ function aggregator_update_8001() {
     'length' => 12,
     'not null' => TRUE,
     'default' => '',
+    'initial' => LANGUAGE_DEFAULT,
   ));
   db_add_field('aggregator_item', 'langcode', array(
     'description' => 'The {language}.langcode of this feed item.',
@@ -326,12 +327,6 @@ function aggregator_update_8001() {
     'length' => 12,
     'not null' => TRUE,
     'default' => '',
+    'initial' => LANGUAGE_DEFAULT,
   ));
-  // Set langcode to LANGUAGE_DEFAULT.
-  db_update('aggregator_feed')
-    ->fields(array('langcode' => LANGUAGE_DEFAULT))
-    ->execute();
-  db_update('aggregator_item')
-    ->fields(array('langcode' => LANGUAGE_DEFAULT))
-    ->execute();
 }
-- 
GitLab