diff options
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 8decfc133..41c6a7565 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1021 ); +define( 'UPDATE_VERSION' , 1022 ); /** * @@ -292,3 +292,14 @@ function update_r1020() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1021() { + + $r = q("ALTER TABLE `abook` CHANGE `abook_connnected` `abook_connected` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', + drop index `abook_connnected`, add index ( `abook_connected` ) "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |