file/attachment storage api with revision control - needs a bit more testing but the framework is in place

This commit is contained in:
friendica
2013-01-31 16:13:44 -08:00
parent a72c16c7c0
commit 02e099da45
8 changed files with 332 additions and 173 deletions

View File

@@ -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;
}