mirror of
https://github.com/friendica/friendica
synced 2025-04-25 01:10:12 +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
|
@ -6,19 +6,18 @@ A key value storage
|
|||
Fields
|
||||
------
|
||||
|
||||
| Field | Description | Type | Null | Key | Default | Extra |
|
||||
| ----- | ----------- | ------------- | ---- | --- | ------- | -------------- |
|
||||
| id | | int unsigned | NO | PRI | NULL | auto_increment |
|
||||
| k | | varbinary(50) | NO | | | |
|
||||
| v | | mediumtext | YES | | NULL | |
|
||||
| Field | Description | Type | Null | Key | Default | Extra |
|
||||
| ---------- | ---------------------------- | ------------- | ---- | --- | ------- | ----- |
|
||||
| k | | varbinary(50) | NO | PRI | NULL | |
|
||||
| v | | mediumtext | YES | | NULL | |
|
||||
| updated_at | timestamp of the last update | int unsigned | YES | | NULL | |
|
||||
|
||||
Indexes
|
||||
------------
|
||||
|
||||
| Name | Fields |
|
||||
| ------- | --------- |
|
||||
| PRIMARY | id |
|
||||
| k | UNIQUE, k |
|
||||
| Name | Fields |
|
||||
| ------- | ------ |
|
||||
| PRIMARY | k |
|
||||
|
||||
|
||||
Return to [database documentation](help/database)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue