summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll')
-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.',
+ ));
+}