mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Merge pull request #10962 from annando/db-doc
Updated database documentation
This commit is contained in:
commit
aeb75c19a3
4 changed files with 15 additions and 15 deletions
|
@ -1315,8 +1315,8 @@ CREATE TABLE IF NOT EXISTS `post-user-notification` (
|
|||
-- TABLE process
|
||||
--
|
||||
CREATE TABLE IF NOT EXISTS `process` (
|
||||
`pid` int unsigned NOT NULL COMMENT 'The process ID of the current node',
|
||||
`hostname` varchar(32) NOT NULL COMMENT 'The hostname of the node',
|
||||
`pid` int unsigned NOT NULL COMMENT 'The ID of the process',
|
||||
`hostname` varchar(32) NOT NULL COMMENT 'The name of the host the process is ran on',
|
||||
`command` varbinary(32) NOT NULL DEFAULT '' COMMENT '',
|
||||
`created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
||||
PRIMARY KEY(`pid`,`hostname`),
|
||||
|
|
|
@ -29,7 +29,6 @@ Database Tables
|
|||
| [gserver](help/database/db_gserver) | Global servers |
|
||||
| [gserver-tag](help/database/db_gserver-tag) | Tags that the server has subscribed |
|
||||
| [hook](help/database/db_hook) | addon hook registry |
|
||||
| [host](help/database/db_host) | Hostname |
|
||||
| [inbox-status](help/database/db_inbox-status) | Status of ActivityPub inboxes |
|
||||
| [intro](help/database/db_intro) | |
|
||||
| [item-uri](help/database/db_item-uri) | URI and GUID for items |
|
||||
|
|
|
@ -7,8 +7,9 @@ Fields
|
|||
------
|
||||
|
||||
| Field | Description | Type | Null | Key | Default | Extra |
|
||||
| ------- | ----------- | ------------- | ---- | --- | ------------------- | ----- |
|
||||
| pid | | int unsigned | NO | PRI | NULL | |
|
||||
| -------- | ------------------------------------------ | ------------- | ---- | --- | ------------------- | ----- |
|
||||
| pid | The ID of the process | int unsigned | NO | PRI | NULL | |
|
||||
| hostname | The name of the host the process is ran on | varchar(32) | NO | PRI | NULL | |
|
||||
| command | | varbinary(32) | NO | | | |
|
||||
| created | | datetime | NO | | 0001-01-01 00:00:00 | |
|
||||
|
||||
|
@ -16,8 +17,8 @@ Indexes
|
|||
------------
|
||||
|
||||
| Name | Fields |
|
||||
| ------- | ------- |
|
||||
| PRIMARY | pid |
|
||||
| ------- | ------------- |
|
||||
| PRIMARY | pid, hostname |
|
||||
| command | command |
|
||||
|
||||
|
||||
|
|
|
@ -1332,8 +1332,8 @@ return [
|
|||
"process" => [
|
||||
"comment" => "Currently running system processes",
|
||||
"fields" => [
|
||||
"pid" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "comment" => "The process ID of the current node"],
|
||||
"hostname" => ["type" => "varchar(32)", "not null" => "1", "primary" => "1", "comment" => "The hostname of the current node"],
|
||||
"pid" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "comment" => "The ID of the process"],
|
||||
"hostname" => ["type" => "varchar(32)", "not null" => "1", "primary" => "1", "comment" => "The name of the host the process is ran on"],
|
||||
"command" => ["type" => "varbinary(32)", "not null" => "1", "default" => "", "comment" => ""],
|
||||
"created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue