Nodewords 6.x-1-dev, xxxx-xx-xx
---------------------------
+#681080 by kiamlaluno: Update function changes the field id into a smallint.
#672068 by suvisor, kiamlaluno: Update fails passing from 6.x-1.3 to 6.x-1.11.
#679466 by kiamlaluno: Update from Nodewords 6.x-1.3-alpha2 to 6.x-1.11 fails because of Update #6151.
#675110 by kiamlaluno: Add '#wysiwyg' => FALSE to textareas.
/**
* Implements hook_update_N().
*/
-function nodewords_update_6162() {
- $ret = array();
-
- db_drop_index($ret, 'nodewords', 'nodewords_type_id');
- db_drop_unique_key($ret, 'nodewords', 'nodewords_type_id_name');
-
- db_change_field($ret, 'nodewords', 'type', 'type',
- array(
- 'type' => 'int',
- 'size' => 'small',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- )
- );
-
- db_change_field($ret, 'nodewords', 'id', 'id',
- array(
- 'type' => 'int',
- 'size' => 'small',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- )
- );
-
- db_add_index($ret, 'nodewords', 'nodewords_type_id',
- array('type', 'id')
- );
- db_add_unique_key($ret, 'nodewords', 'nodewords_type_id_name',
- array('type', 'id', 'name')
- );
-
- variable_set('nodewords_update_6162', TRUE);
-
- return $ret;
-}
-
-/**
- * Implements hook_update_N().
- */
function nodewords_update_6164() {
$node_types = array_keys(node_get_types('names'));
$ret = array();
}
/**
+ * Implements hook_update_N().
+ */
+function nodewords_update_6169() {
+ $ret = array();
+
+ db_drop_index($ret, 'nodewords', 'nodewords_type_id');
+ db_drop_unique_key($ret, 'nodewords', 'nodewords_type_id_name');
+
+ db_change_field($ret, 'nodewords', 'type', 'type',
+ array(
+ 'type' => 'int',
+ 'size' => 'small',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'default' => 0,
+ )
+ );
+
+ db_change_field($ret, 'nodewords', 'id', 'id',
+ array(
+ 'type' => 'int',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'default' => 0,
+ )
+ );
+
+ db_add_index($ret, 'nodewords', 'nodewords_type_id',
+ array('type', 'id')
+ );
+ db_add_unique_key($ret, 'nodewords', 'nodewords_type_id_name',
+ array('type', 'id', 'name')
+ );
+
+ variable_set('nodewords_update', 6169);
+
+ return $ret;
+}
+
+/**
* Implements hook_uninstall().
*/
function nodewords_uninstall() {