mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
Add Database storage backend
This storage store files data in a separate database table
This commit is contained in:
parent
6e85a18678
commit
e5c2d4e2f8
3 changed files with 76 additions and 2 deletions
11
database.sql
11
database.sql
|
@ -1,6 +1,6 @@
|
|||
-- ------------------------------------------
|
||||
-- Friendica 2019.03-dev (The Tazmans Flax-lily)
|
||||
-- DB_UPDATE_VERSION 1294
|
||||
-- DB_UPDATE_VERSION 1295
|
||||
-- ------------------------------------------
|
||||
|
||||
|
||||
|
@ -1274,4 +1274,13 @@ CREATE TABLE IF NOT EXISTS `workerqueue` (
|
|||
INDEX `done_next_try` (`done`,`next_try`)
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Background tasks queue entries';
|
||||
|
||||
--
|
||||
-- TABLE storage
|
||||
--
|
||||
CREATE TABLE IF NOT EXISTS `storage` (
|
||||
`id` int unsigned NOT NULL auto_increment COMMENT 'Auto incremented image data id',
|
||||
`data` longblob NOT NULL COMMENT 'file data',
|
||||
PRIMARY KEY(`id`)
|
||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Data stored by Database storage backend';
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue