summaryrefslogtreecommitdiff
path: root/modules/poll/poll.install
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/poll/poll.install
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/poll/poll.install')
-rw-r--r--modules/poll/poll.install13
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/poll/poll.install b/modules/poll/poll.install
index d953f9713..542937d97 100644
--- a/modules/poll/poll.install
+++ b/modules/poll/poll.install
@@ -72,7 +72,6 @@ function poll_schema() {
),
'weight' => array(
'type' => 'int',
- 'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
'description' => 'The sort order of this choice among all choices for the same node.',
@@ -157,3 +156,15 @@ function poll_update_7002() {
);
db_add_field('poll_vote', 'timestamp', $field);
}
+
+/**
+ * Change the weight column to normal int.
+ */
+function poll_update_7003() {
+ db_change_field('poll_choice', 'weight', 'weight', array(
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
+ 'description' => 'The sort order of this choice among all choices for the same node.',
+ ));
+}