Add key-value table

This commit is contained in:
Philipp 2022-12-29 16:54:08 +01:00
parent c264278c5d
commit 9a10bb4295
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 50 additions and 2 deletions

View file

@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1504);
define('DB_UPDATE_VERSION', 1505);
}
return [
@ -889,6 +889,18 @@ return [
"uid" => ["uid"],
]
],
"key-value" => [
"comment" => "A key value storage",
"fields" => [
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
"k" => ["type" => "varbinary(50)", "not null" => "1", "default" => "", "comment" => ""],
"v" => ["type" => "mediumtext", "comment" => ""],
],
"indexes" => [
"PRIMARY" => ["id"],
"k" => ["UNIQUE", "k"],
],
],
"locks" => [
"comment" => "",
"fields" => [