aboutsummaryrefslogtreecommitdiff
path: root/reminder.install
diff options
context:
space:
mode:
Diffstat (limited to 'reminder.install')
-rw-r--r--reminder.install24
1 files changed, 23 insertions, 1 deletions
diff --git a/reminder.install b/reminder.install
index 38de02f..a5bbbb0 100644
--- a/reminder.install
+++ b/reminder.install
@@ -41,7 +41,7 @@ function reminder_schema() {
'not null' => TRUE,
'default' => '0'
),
- 'interval' => array(
+ 'frequency' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
@@ -167,3 +167,25 @@ function reminder_update_7000(&$sandbox) {
$schema = reminder_schema();
db_create_table('reminder_notifications', $schema['reminder_notifications']);
}
+
+/**
+ * Change field 'interval' to 'frequency'.
+ */
+function reminder_update_7001(&$sandbox) {
+ // Make sure to not run this update twice.
+ if (db_field_exists('reminder', 'frequency')) {
+ return;
+ }
+
+ db_drop_field('reminder', 'interval');
+
+ db_add_field('reminder', 'frequency',
+ array(
+ 'description' => t('Reminder frequency.'),
+ 'type' => 'varchar',
+ 'length' => 255,
+ 'not null' => TRUE,
+ 'default' => '0'
+ )
+ );
+}