diff options
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/profile.install | 13 |
1 files changed, 12 insertions, 1 deletions
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.', + )); +} |