aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-16 16:10:35 -0700
committerfriendica <info@friendica.com>2014-08-16 16:10:35 -0700
commit20bdcb037f29824bcb0c8307526c0e95baa7b360 (patch)
treee31463bebab395d507b88d73a590caf71df3c780 /install
parentba0bf596b58440c0e50142565d7ec77838be95cc (diff)
downloadvolse-hubzilla-20bdcb037f29824bcb0c8307526c0e95baa7b360.tar.gz
volse-hubzilla-20bdcb037f29824bcb0c8307526c0e95baa7b360.tar.bz2
volse-hubzilla-20bdcb037f29824bcb0c8307526c0e95baa7b360.zip
provide backend storage and declaration of directory realm
Diffstat (limited to 'install')
-rw-r--r--install/database.sql4
-rw-r--r--install/update.php11
2 files changed, 13 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql
index eabd45d4c..2791f94be 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -945,13 +945,15 @@ CREATE TABLE IF NOT EXISTS `site` (
`site_register` int(11) NOT NULL DEFAULT '0',
`site_sellpage` char(255) NOT NULL DEFAULT '',
`site_location` char(255) NOT NULL DEFAULT '',
+ `site_realm` char(255) NOT NULL DEFAULT '',
PRIMARY KEY (`site_url`),
KEY `site_flags` (`site_flags`),
KEY `site_update` (`site_update`),
KEY `site_directory` (`site_directory`),
KEY `site_register` (`site_register`),
KEY `site_access` (`site_access`),
- KEY `site_sellpage` (`site_sellpage`)
+ KEY `site_sellpage` (`site_sellpage`),
+ KEY `site_realm` (`site_realm`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `source` (
diff --git a/install/update.php b/install/update.php
index 135aba674..bd4e043a0 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1121 );
+define( 'UPDATE_VERSION' , 1122 );
/**
*
@@ -1360,3 +1360,12 @@ ADD INDEX ( `public_policy` )");
}
+function update_r1121() {
+ $r = q("ALTER TABLE `site` ADD `site_realm` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD INDEX ( `site_realm` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+
+