aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-20 18:36:02 -0700
committerfriendica <info@friendica.com>2013-06-20 18:36:02 -0700
commit61601dc23d3e8305720bfc4e4e6b6dbd7b85f546 (patch)
tree63d9e661fdeb1bbf83e6ec19187b852657383191 /install/update.php
parentdd9d32bcb3dc8ab8a4cf0c9658f01dfba24f7db4 (diff)
downloadvolse-hubzilla-61601dc23d3e8305720bfc4e4e6b6dbd7b85f546.tar.gz
volse-hubzilla-61601dc23d3e8305720bfc4e4e6b6dbd7b85f546.tar.bz2
volse-hubzilla-61601dc23d3e8305720bfc4e4e6b6dbd7b85f546.zip
Add site registration policy to site record. This is not yet used or stored, but potentially can be exchanged through directory mirrors to automatically create "open site" lists.
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index ba5ec0262..c57b8562e 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1045 );
+define( 'UPDATE_VERSION' , 1046 );
/**
*
@@ -556,3 +556,12 @@ ADD INDEX ( `imgurl` ) ");
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
+
+function update_r1045() {
+ $r = q("ALTER TABLE `site` ADD `site_register` INT NOT NULL DEFAULT '0',
+ADD INDEX ( `site_register` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+