summaryrefslogtreecommitdiff
path: root/modules/dblog/dblog.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dblog/dblog.install')
-rw-r--r--modules/dblog/dblog.install14
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/dblog/dblog.install b/modules/dblog/dblog.install
index 8c1b6af64..ca9107c8f 100644
--- a/modules/dblog/dblog.install
+++ b/modules/dblog/dblog.install
@@ -65,7 +65,7 @@ function dblog_schema() {
'link' => array(
'type' => 'varchar',
'length' => 255,
- 'not null' => TRUE,
+ 'not null' => FALSE,
'default' => '',
'description' => t('Link to view the result of the event.'),
),
@@ -77,7 +77,7 @@ function dblog_schema() {
'referer' => array(
'type' => 'varchar',
'length' => 128,
- 'not null' => TRUE,
+ 'not null' => FALSE,
'default' => '',
'description' => t('URL of referring page.'),
),
@@ -103,3 +103,13 @@ function dblog_schema() {
return $schema;
}
+
+/**
+ * Allow NULL values for links.
+ */
+function dblog_update_7001() {
+ $ret = array();
+ db_change_field($ret, 'watchdog', 'link', 'link', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => ''));
+ db_change_field($ret, 'watchdog', 'referer', 'referer', array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, 'default' => ''));
+ return $ret;
+}