aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-01-20 18:43:34 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-01-20 18:43:34 -0800
commit12c4a61edc0a225677c31f6d26a7a785c065c115 (patch)
treea17ceb5171ce8225f25fcb6299dd6739f9e47365 /engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php
parent9cca28b590a5884033c60af5a47aa3dcc383f7f0 (diff)
downloadelgg-12c4a61edc0a225677c31f6d26a7a785c065c115.tar.gz
elgg-12c4a61edc0a225677c31f6d26a7a785c065c115.tar.bz2
Fixes #2222. Added IP address to system log table and log browser. Fixed problem in log browser that would only show entries without an owner_guid.
Diffstat (limited to 'engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php')
-rw-r--r--engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php b/engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php
new file mode 100644
index 000000000..b9514e156
--- /dev/null
+++ b/engine/lib/upgrades/2012012000-1.8.3-ip_in_syslog-87fe0f068cf62428.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Elgg 1.8.3 upgrade 2012012000
+ * ip_in_syslog
+ *
+ * Adds a field for an IP address in the system log table
+ */
+
+$db_prefix = elgg_get_config('dbprefix');
+$q = "ALTER TABLE {$db_prefix}system_log ADD ip_address VARCHAR(15) NOT NULL AFTER time_created";
+
+update_data($q); \ No newline at end of file