diff options
author | friendica <info@friendica.com> | 2013-03-27 19:35:34 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-03-27 19:35:34 -0700 |
commit | 810a60b9125b957485fe7030b9a0f4bc00164124 (patch) | |
tree | afc2b3e2c9d807ca8e61d709fb260d0b69a90854 /install | |
parent | 8148b7c32f160cbe2cdc37e7271ac62aa2133b7c (diff) | |
download | volse-hubzilla-810a60b9125b957485fe7030b9a0f4bc00164124.tar.gz volse-hubzilla-810a60b9125b957485fe7030b9a0f4bc00164124.tar.bz2 volse-hubzilla-810a60b9125b957485fe7030b9a0f4bc00164124.zip |
add new connections to default group (if any)
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 2 | ||||
-rw-r--r-- | install/update.php | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql index 6e16e7646..c989439fa 100644 --- a/install/database.sql +++ b/install/database.sql @@ -160,7 +160,7 @@ CREATE TABLE IF NOT EXISTS `channel` ( `channel_max_friend_req` int(10) unsigned NOT NULL DEFAULT '10', `channel_expire_days` int(11) NOT NULL DEFAULT '0', `channel_passwd_reset` char(255) NOT NULL DEFAULT '', - `channel_default_gid` int(10) unsigned NOT NULL DEFAULT '0', + `channel_default_group` char(255) NOT NULL DEFAULT '', `channel_allow_cid` mediumtext NOT NULL, `channel_allow_gid` mediumtext NOT NULL, `channel_deny_cid` mediumtext NOT NULL, diff --git a/install/update.php b/install/update.php index a2a280e67..eb796ccf6 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1039 ); +define( 'UPDATE_VERSION' , 1040 ); /** * @@ -505,3 +505,11 @@ function update_r1038() { } +function update_r1039() { + $r = q("ALTER TABLE `channel` CHANGE `channel_default_gid` `channel_default_group` CHAR( 255 ) NOT NULL DEFAULT ''"); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + +} |