summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-26 05:43:06 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-26 05:43:06 +0000
commitdee20ed6a2bd92a2e67c27ccc7d60303d66cdcde (patch)
tree0d3b432effb5ba4cc8e6eb2c8627c9661d52ebe8 /core/helpers/core_installer.php
parent0bef37eb0b077863984eb70ec99c40b2f32840bf (diff)
Added the concept of "permanent" messages that we show to admins. Use
this to show a "your thumbs/resizes are out of date" message whenever we change the graphics rules. Tweak watermark module to add graphics rules whenever we make a change, which triggers the graphics module to add the permanent message.
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index ee40b07d..d3147a02 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -95,6 +95,15 @@ class core_installer {
PRIMARY KEY (`id`))
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
+ $db->query("CREATE TABLE `messages` (
+ `id` int(9) NOT NULL auto_increment,
+ `key` varchar(255) default NULL,
+ `value` varchar(255) default NULL,
+ `severity` varchar(32) default NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY(`key`))
+ ENGINE=InnoDB DEFAULT CHARSET=utf8;");
+
$db->query("CREATE TABLE `modules` (
`id` int(9) NOT NULL auto_increment,
`name` varchar(255) default NULL,