diff options
author | friendica <info@friendica.com> | 2013-03-15 15:36:58 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-03-15 15:36:58 -0700 |
commit | 5a29f511c1fa609f58f50d9148edd1fe77b23d9d (patch) | |
tree | 051fb42269c958595db67c8a4204dd4c5d972970 /install/update.php | |
parent | 62f61a559abe97b659754658e9a266c7c8873d3e (diff) | |
download | volse-hubzilla-5a29f511c1fa609f58f50d9148edd1fe77b23d9d.tar.gz volse-hubzilla-5a29f511c1fa609f58f50d9148edd1fe77b23d9d.tar.bz2 volse-hubzilla-5a29f511c1fa609f58f50d9148edd1fe77b23d9d.zip |
add xconfig table and functions, update strings and doco
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 4bdba3507..0c7c6e0df 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1035 ); +define( 'UPDATE_VERSION' , 1036 ); /** * @@ -445,3 +445,20 @@ KEY `ud_date` ( `ud_date` ) return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1035() { + $r = q("CREATE TABLE if not exists `xconfig` ( +`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , +`xchan` CHAR( 255 ) NOT NULL , +`cat` CHAR( 255 ) NOT NULL , +`k` CHAR( 255 ) NOT NULL , +`v` MEDIUMTEXT NOT NULL, +KEY `xchan` ( `xchan` ), +KEY `cat` ( `cat` ), +KEY `k` ( `k` ) +) ENGINE = MYISAM DEFAULT CHARSET = utf8"); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |