From af24809fed5debad7bdea74bf6030b8571597f02 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 30 Jan 2010 00:08:34 +0000 Subject: #612870 by asimmonds: Fixed Weight fields should be int, not tinyint. --- modules/profile/profile.install | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/profile') diff --git a/modules/profile/profile.install b/modules/profile/profile.install index 409e3fe38..35185c6c4 100644 --- a/modules/profile/profile.install +++ b/modules/profile/profile.install @@ -65,7 +65,6 @@ function profile_schema() { 'type' => 'int', 'not null' => TRUE, 'default' => 0, - 'size' => 'tiny', 'description' => 'Weight of field in relation to other profile fields.', ), 'required' => array( @@ -154,3 +153,15 @@ function profile_update_7001() { db_rename_table('profile_fields', 'profile_field'); db_rename_table('profile_values', 'profile_value'); } + +/** + * Change the weight column to normal int. + */ +function profile_update_7002() { + db_change_field('profile', 'weight', 'weight', array( + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + 'description' => 'Weight of field in relation to other profile fields.', + )); +} -- cgit v1.2.3