]> git.mxchange.org Git - friendica.git/commitdiff
Updated database documentation
authorMichael <heluecht@pirati.ca>
Sun, 7 Nov 2021 16:10:47 +0000 (16:10 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 7 Nov 2021 16:10:47 +0000 (16:10 +0000)
database.sql
doc/database.md
doc/database/db_process.md

index 9b19517bb90d12115160515dc55d8488d0bb114a..7c3b67715d9f498fbb51ee5c3d870a73aaa1bdff 100644 (file)
@@ -1316,10 +1316,10 @@ CREATE TABLE IF NOT EXISTS `post-user-notification` (
 --
 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',
+       `hostname` varchar(32) NOT NULL COMMENT 'The hostname of the current node',
        `command` varbinary(32) NOT NULL DEFAULT '' COMMENT '',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
-        PRIMARY KEY(`pid`, `hostname`),
+        PRIMARY KEY(`pid`,`hostname`),
         INDEX `command` (`command`)
 ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Currently running system processes';
 
index bc690c6cd28855c8a09d9c6d67d5afc5de3950e1..628e84e2117626435bf4bf974914b31dc69eca78 100644 (file)
@@ -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 |
index 062e6ff22cc364a10ab0064b9cdb2fb93d334cf4..8ffec5767155ba600a6bb4c278e1550b3cac42b1 100644 (file)
@@ -6,19 +6,20 @@ Currently running system processes
 Fields
 ------
 
-| Field   | Description | Type          | Null | Key | Default             | Extra |
-| ------- | ----------- | ------------- | ---- | --- | ------------------- | ----- |
-| pid     |             | int unsigned  | NO   | PRI | NULL                |       |
-| command |             | varbinary(32) | NO   |     |                     |       |
-| created |             | datetime      | NO   |     | 0001-01-01 00:00:00 |       |
+| Field    | Description                        | Type          | Null | Key | Default             | Extra |
+| -------- | ---------------------------------- | ------------- | ---- | --- | ------------------- | ----- |
+| pid      | The process ID of the current node | int unsigned  | NO   | PRI | NULL                |       |
+| hostname | The hostname of the current node   | varchar(32)   | NO   | PRI | NULL                |       |
+| command  |                                    | varbinary(32) | NO   |     |                     |       |
+| created  |                                    | datetime      | NO   |     | 0001-01-01 00:00:00 |       |
 
 Indexes
 ------------
 
-| Name    | Fields  |
-| ------- | ------- |
-| PRIMARY | pid     |
-| command | command |
+| Name    | Fields        |
+| ------- | ------------- |
+| PRIMARY | pid, hostname |
+| command | command       |
 
 
 Return to [database documentation](help/database)