diff options
author | friendica <info@friendica.com> | 2012-12-19 22:45:49 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-19 22:45:49 -0800 |
commit | d7c23be8c9312e002e4a5e0b68ab669f1aadcf55 (patch) | |
tree | 40d19525dd497848df6bb76fe5d1918e8fb9cfc3 /install/update.php | |
parent | ad20e1f617c7e26585153b587eb9a85fc958794b (diff) | |
download | volse-hubzilla-d7c23be8c9312e002e4a5e0b68ab669f1aadcf55.tar.gz volse-hubzilla-d7c23be8c9312e002e4a5e0b68ab669f1aadcf55.tar.bz2 volse-hubzilla-d7c23be8c9312e002e4a5e0b68ab669f1aadcf55.zip |
some changes for directory services
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index ad21d9b45..48cb15c03 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1003 ); +define( 'UPDATE_VERSION' , 1005 ); /** * @@ -74,3 +74,28 @@ function update_r1002() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + + +function update_r1003() { + $r = q("ALTER TABLE `xchan` ADD `xchan_flags` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `xchan_network` , +ADD INDEX ( `xchan_flags` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + +function update_r1004() { + $r = q("CREATE TABLE if not exists `site` ( +`site_url` CHAR( 255 ) NOT NULL , +`site_flags` INT NOT NULL DEFAULT '0', +`site_update` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', +`site_directory` CHAR( 255 ) NOT NULL DEFAULT '', +PRIMARY KEY ( `site_url` ) +) ENGINE = MYISAM "); + + $r2 = q("alter table site add index (site_flags), add index (site_update), add index (site_directory) "); + + if($r && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +}
\ No newline at end of file |