diff options
author | friendica <info@friendica.com> | 2013-01-30 18:20:14 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-30 18:20:14 -0800 |
commit | 3d06f3964f7c5b36a151268c37fcac4d87b49e76 (patch) | |
tree | 1897d9dddf86e82522af262ffb5ce558a77b26c5 /install/update.php | |
parent | 3767bba3c3669b6e882139abfaa3553db61d1474 (diff) | |
download | volse-hubzilla-3d06f3964f7c5b36a151268c37fcac4d87b49e76.tar.gz volse-hubzilla-3d06f3964f7c5b36a151268c37fcac4d87b49e76.tar.bz2 volse-hubzilla-3d06f3964f7c5b36a151268c37fcac4d87b49e76.zip |
add item revision column and index
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index b0eed4818..7eb7d719f 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1023 ); +define( 'UPDATE_VERSION' , 1024 ); /** * @@ -309,3 +309,10 @@ function update_r1022() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1023() { + $r = q("ALTER TABLE `item` ADD `revision` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `lang` , add index ( revision ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |