diff options
-rw-r--r-- | includes/database.mysql-common.inc | 7 | ||||
-rw-r--r-- | modules/menu/menu.schema | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/includes/database.mysql-common.inc b/includes/database.mysql-common.inc index c35c90d45..f47d2a8d5 100644 --- a/includes/database.mysql-common.inc +++ b/includes/database.mysql-common.inc @@ -209,7 +209,7 @@ function db_drop_table(&$ret, $table) { * The field specification array, as taken from a schema definition */ function db_add_field(&$ret, $table, $field, $spec) { - $query = 'ALTER TABLE {'. $table .'} ADD '. $field .' '; + $query = 'ALTER TABLE {'. $table .'} ADD '; $query .= _db_create_field_sql($field, _db_process_field($spec)); $ret[] = update_sql($query); } @@ -365,11 +365,6 @@ function db_drop_index(&$ret, $table, $name) { /** * Change a field definition. * - * Remember that changing a field definition involves adding a new field - * and dropping an old one. This means that any indices, primary keys and - * sequences from serial-type fields are dropped and might need to be - * recreated. - * * @param $ret * Array to which query results will be added. * @param $table diff --git a/modules/menu/menu.schema b/modules/menu/menu.schema index 665aebf93..0d1133caa 100644 --- a/modules/menu/menu.schema +++ b/modules/menu/menu.schema @@ -23,7 +23,7 @@ function menu_schema() { 'description' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), 'position' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), - 'file' => array('type' => 'text', 'not null' => FALSE, 'default' => '', 'size' => 'medium') + 'file' => array('type' => 'text', 'size' => 'medium') ), 'indexes' => array( 'fit' => array('fit'), |