aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/update.php b/update.php
index c29394b48..36116341a 100755
--- a/update.php
+++ b/update.php
@@ -1122,3 +1122,19 @@ function update_1130() {
q("ALTER TABLE `item` ADD `file` MEDIUMTEXT NOT NULL AFTER `inform`, ADD FULLTEXT KEY (`file`) ");
}
+/**
+ * CREATE TABLE for profiling
+ */
+function update_1132() {
+ q("CREATE TABLE IF NOT EXISTS `profiling` (
+`id` INT NOT NULL AUTO_INCREMENT PRIMARY_KEY ,
+`function` VARCHAR(255) NOT NULL,
+`file` VARCHAR(255) NOT NULL,
+`line` INT NOT NULL DEFAULT '-1',
+`class` VARCHAR(255),
+`time` FLOAT(10, 2) NOT NULL,
+INDEX(`function`),
+INDEX(`file`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8; ");
+}
+