diff options
author | friendica <info@friendica.com> | 2013-01-31 16:13:44 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-31 16:13:44 -0800 |
commit | 02e099da455f0ca42720e60eabe65ba8d4560373 (patch) | |
tree | 51ca9749aa9c67fc3a161e62eff121e9b51a34ae /install/update.php | |
parent | a72c16c7c0c7a0b8fc0aaf5fbda78291e85cd054 (diff) | |
download | volse-hubzilla-02e099da455f0ca42720e60eabe65ba8d4560373.tar.gz volse-hubzilla-02e099da455f0ca42720e60eabe65ba8d4560373.tar.bz2 volse-hubzilla-02e099da455f0ca42720e60eabe65ba8d4560373.zip |
file/attachment storage api with revision control - needs a bit more testing but the framework is in place
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 7eb7d719f..fa428b135 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1024 ); +define( 'UPDATE_VERSION' , 1025 ); /** * @@ -316,3 +316,12 @@ function update_r1023() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1024() { + $r = q("ALTER TABLE `attach` ADD `revision` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `filesize` , +ADD INDEX ( `revision` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |