Pluggable storage backends: first steps

- add backend related columns in photo table
- add system resource storage class
- add code to load image data from backend class
- return "nosign" image as photo meta with SystemResource backend
This commit is contained in:
fabrixxm 2018-11-20 23:15:03 +01:00 committed by Hypolite Petovan
commit 3b3c4e8cc7
4 changed files with 83 additions and 10 deletions

View file

@ -34,7 +34,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1293);
define('DB_UPDATE_VERSION', 1294);
}
return [
@ -955,6 +955,8 @@ return [
"allow_gid" => ["type" => "mediumtext", "comment" => "Access Control - list of allowed groups"],
"deny_cid" => ["type" => "mediumtext", "comment" => "Access Control - list of denied contact.id"],
"deny_gid" => ["type" => "mediumtext", "comment" => "Access Control - list of denied groups"],
"backend-class" => ["type" => "tinytext", "default" => "", "comment" => "Storage backend class"],
"backend-ref" => ["type" => "text", "default" => "", "comment" => "Storage backend data reference"]
],
"indexes" => [
"PRIMARY" => ["id"],