summaryrefslogtreecommitdiff
path: root/modules/poll/poll.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll/poll.install')
-rw-r--r--modules/poll/poll.install14
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/poll/poll.install b/modules/poll/poll.install
index 3e2f9edd8..b560aad0b 100644
--- a/modules/poll/poll.install
+++ b/modules/poll/poll.install
@@ -48,7 +48,7 @@ function poll_schema() {
'primary key' => array('nid'),
);
- $schema['poll_choices'] = array(
+ $schema['poll_choice'] = array(
'description' => 'Stores information about all choices for all {poll}s.',
'fields' => array(
'chid' => array(
@@ -91,7 +91,7 @@ function poll_schema() {
'primary key' => array('chid'),
);
- $schema['poll_votes'] = array(
+ $schema['poll_vote'] = array(
'description' => 'Stores per-{users} votes for each {poll}.',
'fields' => array(
'chid' => array(
@@ -131,3 +131,13 @@ function poll_schema() {
return $schema;
}
+
+/**
+ * Rename {poll_choices} table to {poll_choice} and {poll_votes} to {poll_vote}.
+ */
+function poll_update_7001() {
+ $ret = array();
+ db_rename_table($ret, 'poll_choices', 'poll_choice');
+ db_rename_table($ret, 'poll_votes', 'poll_vote');
+ return $ret;
+}