mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
Change key-value table
- Make "k" as primary key - Added "updated_at"
This commit is contained in:
parent
f944a2a620
commit
7c4c409060
5 changed files with 68 additions and 21 deletions
|
@ -892,13 +892,12 @@ return [
|
|||
"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" => ""],
|
||||
"k" => ["type" => "varbinary(50)", "not null" => "1", "primary" => "1", "comment" => ""],
|
||||
"v" => ["type" => "mediumtext", "comment" => ""],
|
||||
"updated_at" => ["type" => "int unsigned", "not null" => "0", "comment" => "timestamp of the last update"],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["id"],
|
||||
"k" => ["UNIQUE", "k"],
|
||||
"PRIMARY" => ["k"],
|
||||
],
|
||||
],
|
||||
"locks" => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue