diff options
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 41c6a7565..b0eed4818 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1022 ); +define( 'UPDATE_VERSION' , 1023 ); /** * @@ -303,3 +303,9 @@ function update_r1021() { return UPDATE_FAILED; } +function update_r1022() { + $r = q("alter table attach add index ( filename ), add index ( filetype ), add index ( filesize ), add index ( created ), add index ( edited ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |