Loading i18n_string/i18n_string.inc +10 Changes for i18n_string/i18n_string.inc: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -703,9 +703,19 @@ class i18n_string_textgroup_default { // Create source string so we get an lid $this->save_source($string); } // Convert objectid to objectkey if it's numeric. if (!isset($string->objectkey)) { if (is_numeric($string->objectid)) { $string->objectkey = (int)$string->objectid; } } // Make sure objectkey is numeric. if (!is_numeric($string->objectkey)) { $string->objectkey = 0; } if (!isset($string->format)) { $string->format = ''; } Loading i18n_string/i18n_string.install +12 Changes for i18n_string/i18n_string.install: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -94,6 +94,8 @@ function i18n_string_schema() { ), 'objectindex' => array( 'type' => 'int', 'size' => 'big', 'length' => 20, 'not null' => TRUE, 'default' => 0, 'description' => 'Integer value of Object ID.', Loading Loading @@ -245,6 +247,16 @@ function i18n_string_update_7002() { } } /** * Change objectindex from int to bigint. */ function i18n_string_update_7003() { db_change_field('i18n_string', 'objectindex', 'objectindex', array( 'type' => 'int', 'size' => 'big', 'length' => 20, )); } /** * Notes for update script Loading Loading
i18n_string/i18n_string.inc +10 Changes for i18n_string/i18n_string.inc: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -703,9 +703,19 @@ class i18n_string_textgroup_default { // Create source string so we get an lid $this->save_source($string); } // Convert objectid to objectkey if it's numeric. if (!isset($string->objectkey)) { if (is_numeric($string->objectid)) { $string->objectkey = (int)$string->objectid; } } // Make sure objectkey is numeric. if (!is_numeric($string->objectkey)) { $string->objectkey = 0; } if (!isset($string->format)) { $string->format = ''; } Loading
i18n_string/i18n_string.install +12 Changes for i18n_string/i18n_string.install: 12 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -94,6 +94,8 @@ function i18n_string_schema() { ), 'objectindex' => array( 'type' => 'int', 'size' => 'big', 'length' => 20, 'not null' => TRUE, 'default' => 0, 'description' => 'Integer value of Object ID.', Loading Loading @@ -245,6 +247,16 @@ function i18n_string_update_7002() { } } /** * Change objectindex from int to bigint. */ function i18n_string_update_7003() { db_change_field('i18n_string', 'objectindex', 'objectindex', array( 'type' => 'int', 'size' => 'big', 'length' => 20, )); } /** * Notes for update script Loading