aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xboot.php2
-rw-r--r--install/database.sql2
-rw-r--r--install/update.php11
3 files changed, 13 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index beff28a46..f7c16c646 100755
--- a/boot.php
+++ b/boot.php
@@ -47,7 +47,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1120 );
+define ( 'DB_UPDATE_VERSION', 1121 );
define ( 'EOL', '<br />' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/install/database.sql b/install/database.sql
index bcb4d010c..eabd45d4c 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -520,6 +520,7 @@ CREATE TABLE IF NOT EXISTS `item` (
`sig` text NOT NULL DEFAULT '',
`location` char(255) NOT NULL DEFAULT '',
`coord` char(255) NOT NULL DEFAULT '',
+ `public_policy` char(255) NOT NULL DEFAULT '',
`comment_policy` char(255) NOT NULL DEFAULT '',
`allow_cid` mediumtext NOT NULL DEFAULT '',
`allow_gid` mediumtext NOT NULL DEFAULT '',
@@ -552,6 +553,7 @@ CREATE TABLE IF NOT EXISTS `item` (
KEY `mid` (`mid`),
KEY `parent_mid` (`parent_mid`),
KEY `uid_mid` (`mid`,`uid`),
+ KEY `public_policy` (`public_policy`),
KEY `comment_policy` (`comment_policy`),
KEY `layout_mid` (`layout_mid`),
FULLTEXT KEY `title` (`title`),
diff --git a/install/update.php b/install/update.php
index 9ce452275..135aba674 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1120 );
+define( 'UPDATE_VERSION' , 1121 );
/**
*
@@ -1351,3 +1351,12 @@ function update_r1119() {
return UPDATE_FAILED;
}
+function update_r1120() {
+ $r = q("ALTER TABLE `item` ADD `public_policy` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `coord` ,
+ADD INDEX ( `public_policy` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+
+