From b984eeca3185033611b5726c5838cb08c6f62d11 Mon Sep 17 00:00:00 2001
From: Ivan Berezhnov <domainsua@gmail.com>
Date: Tue, 7 Nov 2017 17:32:07 +0200
Subject: [PATCH] the objectindex change length to 20.

---
 i18n_string/i18n_string.install | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/i18n_string/i18n_string.install b/i18n_string/i18n_string.install
index 30e8cd2..d5e7048 100644
--- a/i18n_string/i18n_string.install
+++ b/i18n_string/i18n_string.install
@@ -94,6 +94,7 @@ function i18n_string_schema() {
       ),
       'objectindex' => array(
         'type' => 'int',
+        'length' => 20,
         'not null' => TRUE,
         'default' => 0,
         'description' => 'Integer value of Object ID.',
@@ -245,6 +246,14 @@ function i18n_string_update_7002() {
   }
 }
 
+/**
+ * Change objectindex from int to bigint.
+ */
+function i18n_string_update_7003() {
+  db_change_field('i18n_string', 'objectindex', 'objectindex', [
+    'length' => 20,
+  ]);
+}
 
 /**
  * Notes for update script
-- 
2.10.1

