]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_gserver.md
Merge pull request #10797 from annando/diaspora-deprecated
[friendica.git] / doc / database / db_gserver.md
index 220a8a17c81186e59071f8fcd0c3f978f16087c3..905602b3b8b4ad364e232a4244861ca6a2b3cb58 100644 (file)
@@ -1,31 +1,46 @@
 Table gserver
 ===========
+
 Global servers
 
-| Field | Description | Type | Null | Key | Default | Extra |
-| ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id               | sequential ID                                      | int unsigned     | NO  | PRI | NULL                | auto_increment |    
-| url              |                                                    | varchar(255)     | NO  |     |                     |                |    
-| nurl             |                                                    | varchar(255)     | NO  |     |                     |                |    
-| version          |                                                    | varchar(255)     | NO  |     |                     |                |    
-| site_name        |                                                    | varchar(255)     | NO  |     |                     |                |    
-| info             |                                                    | text             | YES |     | NULL                |                |    
-| register_policy  |                                                    | tinyint          | NO  |     | 0                   |                |    
-| registered-users | Number of registered users                         | int unsigned     | NO  |     | 0                   |                |    
-| directory-type   | Type of directory service (Poco, Mastodon)         | tinyint          | YES |     | 0                   |                |    
-| poco             |                                                    | varchar(255)     | NO  |     |                     |                |    
-| noscrape         |                                                    | varchar(255)     | NO  |     |                     |                |    
-| network          |                                                    | char(4)          | NO  |     |                     |                |    
-| protocol         | The protocol of the server                         | tinyint unsigned | YES |     | NULL                |                |    
-| platform         |                                                    | varchar(255)     | NO  |     |                     |                |    
-| relay-subscribe  | Has the server subscribed to the relay system      | boolean          | NO  |     | 0                   |                |    
-| relay-scope      | The scope of messages that the server wants to get | varchar(10)      | NO  |     |                     |                |    
-| detection-method | Method that had been used to detect that server    | tinyint unsigned | YES |     | NULL                |                |    
-| created          |                                                    | datetime         | NO  |     | 0001-01-01 00:00:00 |                |    
-| last_poco_query  |                                                    | datetime         | YES |     | 0001-01-01 00:00:00 |                |    
-| last_contact     | Last successful connection request                 | datetime         | YES |     | 0001-01-01 00:00:00 |                |    
-| last_failure     | Last failed connection request                     | datetime         | YES |     | 0001-01-01 00:00:00 |                |    
-| failed           | Connection failed                                  | boolean          | YES |     | NULL                |                |    
-| next_contact     | Next connection request                            | datetime         | YES |     | 0001-01-01 00:00:00 |                |    
+Fields
+------
+
+| Field            | Description                                        | Type             | Null | Key | Default             | Extra          |
+| ---------------- | -------------------------------------------------- | ---------------- | ---- | --- | ------------------- | -------------- |
+| id               | sequential ID                                      | int unsigned     | NO   | PRI | NULL                | auto_increment |
+| url              |                                                    | varchar(255)     | NO   |     |                     |                |
+| nurl             |                                                    | varchar(255)     | NO   |     |                     |                |
+| version          |                                                    | varchar(255)     | NO   |     |                     |                |
+| site_name        |                                                    | varchar(255)     | NO   |     |                     |                |
+| info             |                                                    | text             | YES  |     | NULL                |                |
+| register_policy  |                                                    | tinyint          | NO   |     | 0                   |                |
+| registered-users | Number of registered users                         | int unsigned     | NO   |     | 0                   |                |
+| directory-type   | Type of directory service (Poco, Mastodon)         | tinyint          | YES  |     | 0                   |                |
+| poco             |                                                    | varchar(255)     | NO   |     |                     |                |
+| noscrape         |                                                    | varchar(255)     | NO   |     |                     |                |
+| network          |                                                    | char(4)          | NO   |     |                     |                |
+| protocol         | The protocol of the server                         | tinyint unsigned | YES  |     | NULL                |                |
+| platform         |                                                    | varchar(255)     | NO   |     |                     |                |
+| relay-subscribe  | Has the server subscribed to the relay system      | boolean          | NO   |     | 0                   |                |
+| relay-scope      | The scope of messages that the server wants to get | varchar(10)      | NO   |     |                     |                |
+| detection-method | Method that had been used to detect that server    | tinyint unsigned | YES  |     | NULL                |                |
+| created          |                                                    | datetime         | NO   |     | 0001-01-01 00:00:00 |                |
+| last_poco_query  |                                                    | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
+| last_contact     | Last successful connection request                 | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
+| last_failure     | Last failed connection request                     | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
+| failed           | Connection failed                                  | boolean          | YES  |     | NULL                |                |
+| next_contact     | Next connection request                            | datetime         | YES  |     | 0001-01-01 00:00:00 |                |
+
+Indexes
+------------
+
+| Name         | Fields            |
+| ------------ | ----------------- |
+| PRIMARY      | id                |
+| nurl         | UNIQUE, nurl(190) |
+| next_contact | next_contact      |
+| network      | network           |
+
 
 Return to [database documentation](help/database)