summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-30 00:08:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-30 00:08:34 +0000
commitaf24809fed5debad7bdea74bf6030b8571597f02 (patch)
treec53264fe151c8e72cf4de0672f372728e6c951b8 /modules/profile
parent56026aa2924bc6cfd1cb09a60d1880cbd67a567c (diff)
downloadbrdo-af24809fed5debad7bdea74bf6030b8571597f02.tar.gz
brdo-af24809fed5debad7bdea74bf6030b8571597f02.tar.bz2
#612870 by asimmonds: Fixed Weight fields should be int, not tinyint.
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.install13
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.',
+ ));
+}