diff options
author | Thomas Willingham <founder@kakste.com> | 2013-01-02 11:40:17 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-01-02 11:40:17 +0000 |
commit | 577236c372b4eaa1e93d60d7bedaecea8ef8c97f (patch) | |
tree | e9c38e309a8edcb72e25f17e751eeb6bac3feea0 /install/update.php | |
parent | 2fd0653d6ff3c60920946f83d249c8763dcad4a8 (diff) | |
parent | 4108598133eae97e7c8a0b8e13ead4856f423cff (diff) | |
download | volse-hubzilla-577236c372b4eaa1e93d60d7bedaecea8ef8c97f.tar.gz volse-hubzilla-577236c372b4eaa1e93d60d7bedaecea8ef8c97f.tar.bz2 volse-hubzilla-577236c372b4eaa1e93d60d7bedaecea8ef8c97f.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 614887709..549ae63ed 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1013 ); +define( 'UPDATE_VERSION' , 1014 ); /** * @@ -197,3 +197,17 @@ ADD INDEX ( `xchan_connurl` )"); return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1013() { + $r = q("CREATE TABLE if not exists `xlink` ( +`xlink_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , +`xlink_xchan` CHAR( 255 ) NOT NULL DEFAULT '', +`xlink_link` CHAR( 255 ) NOT NULL DEFAULT '', +`xlink_updated` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' +) ENGINE = MYISAM "); + + $r2 = q("alter table xlink add index ( xlink_xchan ), add index ( xlink_link ), add index ( xlink_updated ) "); + if($r && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |