]> git.mxchange.org Git - friendica.git/commitdiff
Added default value "NULL"
authorMichael <heluecht@pirati.ca>
Mon, 14 Jun 2021 05:08:01 +0000 (05:08 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 14 Jun 2021 05:08:01 +0000 (05:08 +0000)
70 files changed:
doc/database/db_2fa_app_specific_password.md
doc/database/db_2fa_recovery_codes.md
doc/database/db_2fa_trusted_browser.md
doc/database/db_addon.md
doc/database/db_apcontact.md
doc/database/db_application-token.md
doc/database/db_application.md
doc/database/db_attach.md
doc/database/db_auth_codes.md
doc/database/db_cache.md
doc/database/db_challenge.md
doc/database/db_clients.md
doc/database/db_config.md
doc/database/db_contact.md
doc/database/db_conv.md
doc/database/db_conversation.md
doc/database/db_delayed-post.md
doc/database/db_diaspora-interaction.md
doc/database/db_event.md
doc/database/db_fcontact.md
doc/database/db_fsuggest.md
doc/database/db_group.md
doc/database/db_group_member.md
doc/database/db_gserver.md
doc/database/db_hook.md
doc/database/db_host.md
doc/database/db_inbox-status.md
doc/database/db_intro.md
doc/database/db_item-uri.md
doc/database/db_locks.md
doc/database/db_mail.md
doc/database/db_mailacct.md
doc/database/db_manage.md
doc/database/db_notification.md
doc/database/db_notify-threads.md
doc/database/db_notify.md
doc/database/db_oembed.md
doc/database/db_openwebauth-token.md
doc/database/db_parsed_url.md
doc/database/db_pconfig.md
doc/database/db_permissionset.md
doc/database/db_photo.md
doc/database/db_post-category.md
doc/database/db_post-content.md
doc/database/db_post-delivery-data.md
doc/database/db_post-media.md
doc/database/db_post-tag.md
doc/database/db_post-thread-user.md
doc/database/db_post-thread.md
doc/database/db_post-user-notification.md
doc/database/db_post-user.md
doc/database/db_post.md
doc/database/db_process.md
doc/database/db_profile.md
doc/database/db_profile_check.md
doc/database/db_profile_field.md
doc/database/db_push_subscriber.md
doc/database/db_register.md
doc/database/db_search.md
doc/database/db_session.md
doc/database/db_storage.md
doc/database/db_tag.md
doc/database/db_tokens.md
doc/database/db_user-contact.md
doc/database/db_user.md
doc/database/db_userd.md
doc/database/db_verb.md
doc/database/db_worker-ipc.md
doc/database/db_workerqueue.md
src/Database/DBStructure.php

index 9e3680b7681a02adf36525bd93bdf7d70c9ce126..660319e04118c860ab1ab75f3f7b4d9a44ecd775 100644 (file)
@@ -4,11 +4,11 @@ Two-factor app-specific _password
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | Password ID for revocation | mediumint unsigned | YES | PRI |  | auto_increment |    
-| uid | User ID | mediumint unsigned | YES |  |  |  |    
-| description | Description of the usage of the password | varchar(255) | NO |  |  |  |    
-| hashed_password | Hashed password | varchar(255) | YES |  |  |  |    
-| generated | Datetime the password was generated | datetime | YES |  |  |  |    
-| last_used | Datetime the password was last used | datetime | NO |  |  |  |    
+| id | Password ID for revocation | mediumint unsigned | YES | PRI | NULL | auto_increment |    
+| uid | User ID | mediumint unsigned | YES |  | NULL |  |    
+| description | Description of the usage of the password | varchar(255) | NO |  | NULL |  |    
+| hashed_password | Hashed password | varchar(255) | YES |  | NULL |  |    
+| generated | Datetime the password was generated | datetime | YES |  | NULL |  |    
+| last_used | Datetime the password was last used | datetime | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 7b3b9d649ca5c84b2bba311c61c4f6b9bda21cdb..aec9bbd559fe2b0597b88684e518964e12dbf68f 100644 (file)
@@ -4,9 +4,9 @@ Two-factor authentication recovery codes
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uid | User ID | mediumint unsigned | YES | PRI |  |  |    
-| code | Recovery code string | varchar(50) | YES | PRI |  |  |    
-| generated | Datetime the code was generated | datetime | YES |  |  |  |    
-| used | Datetime the code was used | datetime | NO |  |  |  |    
+| uid | User ID | mediumint unsigned | YES | PRI | NULL |  |    
+| code | Recovery code string | varchar(50) | YES | PRI | NULL |  |    
+| generated | Datetime the code was generated | datetime | YES |  | NULL |  |    
+| used | Datetime the code was used | datetime | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 29be4646a728df4cb485f86269f3b825b34a6ad6..f3b336562725e5b5aa1acc473e65a872000c2ba3 100644 (file)
@@ -4,10 +4,10 @@ Two-factor authentication trusted browsers
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| cookie_hash | Trusted cookie hash | varchar(80) | YES | PRI |  |  |    
-| uid | User ID | mediumint unsigned | YES |  |  |  |    
-| user_agent | User agent string | text | NO |  |  |  |    
-| created | Datetime the trusted browser was recorded | datetime | YES |  |  |  |    
-| last_used | Datetime the trusted browser was last used | datetime | NO |  |  |  |    
+| cookie_hash | Trusted cookie hash | varchar(80) | YES | PRI | NULL |  |    
+| uid | User ID | mediumint unsigned | YES |  | NULL |  |    
+| user_agent | User agent string | text | NO |  | NULL |  |    
+| created | Datetime the trusted browser was recorded | datetime | YES |  | NULL |  |    
+| last_used | Datetime the trusted browser was last used | datetime | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index db3a5d44bb4ab99e5dc1c7666effa8652a7150df..91918adef111396e1082554a62b44efe786aa23c 100644 (file)
@@ -4,7 +4,7 @@ registered addons
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
 | name | addon base (file)name | varchar(50) | YES |  |  |  |    
 | version | currently unused | varchar(50) | YES |  |  |  |    
 | installed | currently always 1 | boolean | YES |  | 0 |  |    
index bea394bc223956f7703c946bf17c162b0dac0f1d..69d33fe6c48d4e799de5a7ae56d0a1bb9f345dde 100644 (file)
@@ -4,26 +4,26 @@ ActivityPub compatible contacts - used in the ActivityPub implementation
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| url | URL of the contact | varbinary(255) | YES | PRI |  |  |    
-| uuid |  | varchar(255) | NO |  |  |  |    
-| type |  | varchar(20) | YES |  |  |  |    
-| following |  | varchar(255) | NO |  |  |  |    
-| followers |  | varchar(255) | NO |  |  |  |    
-| inbox |  | varchar(255) | YES |  |  |  |    
-| outbox |  | varchar(255) | NO |  |  |  |    
-| sharedinbox |  | varchar(255) | NO |  |  |  |    
-| manually-approve |  | boolean | NO |  |  |  |    
+| url | URL of the contact | varbinary(255) | YES | PRI | NULL |  |    
+| uuid |  | varchar(255) | NO |  | NULL |  |    
+| type |  | varchar(20) | YES |  | NULL |  |    
+| following |  | varchar(255) | NO |  | NULL |  |    
+| followers |  | varchar(255) | NO |  | NULL |  |    
+| inbox |  | varchar(255) | YES |  | NULL |  |    
+| outbox |  | varchar(255) | NO |  | NULL |  |    
+| sharedinbox |  | varchar(255) | NO |  | NULL |  |    
+| manually-approve |  | boolean | NO |  | NULL |  |    
 | nick |  | varchar(255) | YES |  |  |  |    
-| name |  | varchar(255) | NO |  |  |  |    
-| about |  | text | NO |  |  |  |    
-| photo |  | varchar(255) | NO |  |  |  |    
-| addr |  | varchar(255) | NO |  |  |  |    
-| alias |  | varchar(255) | NO |  |  |  |    
-| pubkey |  | text | NO |  |  |  |    
-| subscribe |  | varchar(255) | NO |  |  |  |    
-| baseurl | baseurl of the ap contact | varchar(255) | NO |  |  |  |    
-| gsid | Global Server ID | int unsigned | NO |  |  |  |    
-| generator | Name of the contact&#039;s system | varchar(255) | NO |  |  |  |    
+| name |  | varchar(255) | NO |  | NULL |  |    
+| about |  | text | NO |  | NULL |  |    
+| photo |  | varchar(255) | NO |  | NULL |  |    
+| addr |  | varchar(255) | NO |  | NULL |  |    
+| alias |  | varchar(255) | NO |  | NULL |  |    
+| pubkey |  | text | NO |  | NULL |  |    
+| subscribe |  | varchar(255) | NO |  | NULL |  |    
+| baseurl | baseurl of the ap contact | varchar(255) | NO |  | NULL |  |    
+| gsid | Global Server ID | int unsigned | NO |  | NULL |  |    
+| generator | Name of the contact&#039;s system | varchar(255) | NO |  | NULL |  |    
 | following_count | Number of following contacts | int unsigned | NO |  | 0 |  |    
 | followers_count | Number of followers | int unsigned | NO |  | 0 |  |    
 | statuses_count | Number of posts | int unsigned | NO |  | 0 |  |    
index 8b3d601ff7e052c54df16028efe3425fff5ffb09..af2b8d66131a536bf6cc14d67ac4ec366188ae8b 100644 (file)
@@ -4,15 +4,15 @@ OAuth user token
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| application-id |  | int unsigned | YES | PRI |  |  |    
-| uid | Owner User id | mediumint unsigned | YES | PRI |  |  |    
-| code |  | varchar(64) | YES |  |  |  |    
-| access_token |  | varchar(64) | YES |  |  |  |    
-| created_at | creation time | datetime | YES |  |  |  |    
-| scopes |  | varchar(255) | NO |  |  |  |    
-| read | Read scope | boolean | NO |  |  |  |    
-| write | Write scope | boolean | NO |  |  |  |    
-| follow | Follow scope | boolean | NO |  |  |  |    
-| push | Push scope | boolean | NO |  |  |  |    
+| application-id |  | int unsigned | YES | PRI | NULL |  |    
+| uid | Owner User id | mediumint unsigned | YES | PRI | NULL |  |    
+| code |  | varchar(64) | YES |  | NULL |  |    
+| access_token |  | varchar(64) | YES |  | NULL |  |    
+| created_at | creation time | datetime | YES |  | NULL |  |    
+| scopes |  | varchar(255) | NO |  | NULL |  |    
+| read | Read scope | boolean | NO |  | NULL |  |    
+| write | Write scope | boolean | NO |  | NULL |  |    
+| follow | Follow scope | boolean | NO |  | NULL |  |    
+| push | Push scope | boolean | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 26b92326603a8e8dc04c60fa0e1be790fd32950b..799b01fa164159b8f7bbdef3d4b6ddb6e21554d1 100644 (file)
@@ -4,16 +4,16 @@ OAuth application
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | generated index | int unsigned | YES | PRI |  | auto_increment |    
-| client_id |  | varchar(64) | YES |  |  |  |    
-| client_secret |  | varchar(64) | YES |  |  |  |    
-| name |  | varchar(255) | YES |  |  |  |    
-| redirect_uri |  | varchar(255) | YES |  |  |  |    
-| website |  | varchar(255) | NO |  |  |  |    
-| scopes |  | varchar(255) | NO |  |  |  |    
-| read | Read scope | boolean | NO |  |  |  |    
-| write | Write scope | boolean | NO |  |  |  |    
-| follow | Follow scope | boolean | NO |  |  |  |    
-| push | Push scope | boolean | NO |  |  |  |    
+| id | generated index | int unsigned | YES | PRI | NULL | auto_increment |    
+| client_id |  | varchar(64) | YES |  | NULL |  |    
+| client_secret |  | varchar(64) | YES |  | NULL |  |    
+| name |  | varchar(255) | YES |  | NULL |  |    
+| redirect_uri |  | varchar(255) | YES |  | NULL |  |    
+| website |  | varchar(255) | NO |  | NULL |  |    
+| scopes |  | varchar(255) | NO |  | NULL |  |    
+| read | Read scope | boolean | NO |  | NULL |  |    
+| write | Write scope | boolean | NO |  | NULL |  |    
+| follow | Follow scope | boolean | NO |  | NULL |  |    
+| push | Push scope | boolean | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index e35003c368878a62318a94aed0d1e9d1514fd568..ee546d54e8ec449dc28558796ca96d54f67c929e 100644 (file)
@@ -4,20 +4,20 @@ file attachments
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | generated index | int unsigned | YES | PRI |  | auto_increment |    
+| id | generated index | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | hash | hash | varchar(64) | YES |  |  |  |    
 | filename | filename of original | varchar(255) | YES |  |  |  |    
 | filetype | mimetype | varchar(64) | YES |  |  |  |    
 | filesize | size in bytes | int unsigned | YES |  | 0 |  |    
-| data | file data | longblob | YES |  |  |  |    
+| data | file data | longblob | YES |  | NULL |  |    
 | created | creation time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | edited | last edit time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt; | mediumtext | NO |  |  |  |    
-| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  |  |  |    
-| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  |  |  |    
-| deny_gid | Access Control - list of denied groups | mediumtext | NO |  |  |  |    
-| backend-class | Storage backend class | tinytext | NO |  |  |  |    
-| backend-ref | Storage backend data reference | text | NO |  |  |  |    
+| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt; | mediumtext | NO |  | NULL |  |    
+| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  | NULL |  |    
+| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  | NULL |  |    
+| deny_gid | Access Control - list of denied groups | mediumtext | NO |  | NULL |  |    
+| backend-class | Storage backend class | tinytext | NO |  | NULL |  |    
+| backend-ref | Storage backend data reference | text | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 6a33a30a1456caab3168b9f390179a0b64d4a72e..51d78aa5a3d21f2e736dd81db2dcf29ff35ec1ab 100644 (file)
@@ -4,7 +4,7 @@ OAuth usage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | varchar(40) | YES | PRI |  |  |    
+| id |  | varchar(40) | YES | PRI | NULL |  |    
 | client_id |  | varchar(20) | YES |  |  |  |    
 | redirect_uri |  | varchar(200) | YES |  |  |  |    
 | expires |  | int | YES |  | 0 |  |    
index 328f485e052200557826a808a9fd3be258671fc9..1d1d552c3a3771e7a6f931d1b46374187a503405 100644 (file)
@@ -4,8 +4,8 @@ Stores temporary data
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| k | cache key | varbinary(255) | YES | PRI |  |  |    
-| v | cached serialized value | mediumtext | NO |  |  |  |    
+| k | cache key | varbinary(255) | YES | PRI | NULL |  |    
+| v | cached serialized value | mediumtext | NO |  | NULL |  |    
 | expires | datetime of cache expiration | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | updated | datetime of cache insertion | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
index 59534ba1375262e50f4574aab7f98ffd80b063c7..d3633f1860c748b49f9075a30cbda5810290e196 100644 (file)
@@ -4,7 +4,7 @@ Table challenge
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | challenge |  | varchar(255) | YES |  |  |  |    
 | dfrn-id |  | varchar(255) | YES |  |  |  |    
 | expire |  | int unsigned | YES |  | 0 |  |    
index 89025d428b4c90b8ab64fe6352903caf76fd75c5..acbcaea2c7861cf82fb35771ebefd0be7a98fcc7 100644 (file)
@@ -4,11 +4,11 @@ OAuth usage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| client_id |  | varchar(20) | YES | PRI |  |  |    
+| client_id |  | varchar(20) | YES | PRI | NULL |  |    
 | pw |  | varchar(20) | YES |  |  |  |    
 | redirect_uri |  | varchar(200) | YES |  |  |  |    
-| name |  | text | NO |  |  |  |    
-| icon |  | text | NO |  |  |  |    
+| name |  | text | NO |  | NULL |  |    
+| icon |  | text | NO |  | NULL |  |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 
 Return to [database documentation](help/database)
index 994b1a87134f84b9b9ab440196e6dbfd8a28bd05..e2fb6149fcea3949a168750a08614eb9a4c643b1 100644 (file)
@@ -4,9 +4,9 @@ main configuration storage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
 | cat |  | varbinary(50) | YES |  |  |  |    
 | k |  | varbinary(50) | YES |  |  |  |    
-| v |  | mediumtext | NO |  |  |  |    
+| v |  | mediumtext | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 108157fc09d2a7153e383af10e614507fef5ce79..e362e33458d0a0c1bc045b1ac3e54937d0336c78 100644 (file)
@@ -4,7 +4,7 @@ contact table
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | updated | Date of last contact update | datetime | NO |  | 0001-01-01 00:00:00 |  |    
@@ -17,8 +17,8 @@ contact table
 | name | Name that this contact is known by | varchar(255) | YES |  |  |  |    
 | nick | Nick- and user name of the contact | varchar(255) | YES |  |  |  |    
 | location |  | varchar(255) | NO |  |  |  |    
-| about |  | text | NO |  |  |  |    
-| keywords | public keywords (interests) of the contact | text | NO |  |  |  |    
+| about |  | text | NO |  | NULL |  |    
+| keywords | public keywords (interests) of the contact | text | NO |  | NULL |  |    
 | gender | Deprecated | varchar(32) | YES |  |  |  |    
 | xmpp |  | varchar(255) | YES |  |  |  |    
 | attag |  | varchar(255) | YES |  |  |  |    
@@ -26,22 +26,22 @@ contact table
 | photo | Link to the profile photo of the contact | varchar(255) | NO |  |  |  |    
 | thumb | Link to the profile photo (thumb size) | varchar(255) | NO |  |  |  |    
 | micro | Link to the profile photo (micro size) | varchar(255) | NO |  |  |  |    
-| site-pubkey |  | text | NO |  |  |  |    
+| site-pubkey |  | text | NO |  | NULL |  |    
 | issued-id |  | varchar(255) | YES |  |  |  |    
 | dfrn-id |  | varchar(255) | YES |  |  |  |    
 | url |  | varchar(255) | YES |  |  |  |    
 | nurl |  | varchar(255) | YES |  |  |  |    
 | addr |  | varchar(255) | YES |  |  |  |    
 | alias |  | varchar(255) | YES |  |  |  |    
-| pubkey | RSA public key 4096 bit | text | NO |  |  |  |    
-| prvkey | RSA private key 4096 bit | text | NO |  |  |  |    
+| pubkey | RSA public key 4096 bit | text | NO |  | NULL |  |    
+| prvkey | RSA private key 4096 bit | text | NO |  | NULL |  |    
 | batch |  | varchar(255) | YES |  |  |  |    
-| request |  | varchar(255) | NO |  |  |  |    
-| notify |  | varchar(255) | NO |  |  |  |    
-| poll |  | varchar(255) | NO |  |  |  |    
-| confirm |  | varchar(255) | NO |  |  |  |    
-| subscribe |  | varchar(255) | NO |  |  |  |    
-| poco |  | varchar(255) | NO |  |  |  |    
+| request |  | varchar(255) | NO |  | NULL |  |    
+| notify |  | varchar(255) | NO |  | NULL |  |    
+| poll |  | varchar(255) | NO |  | NULL |  |    
+| confirm |  | varchar(255) | NO |  | NULL |  |    
+| subscribe |  | varchar(255) | NO |  | NULL |  |    
+| poco |  | varchar(255) | NO |  | NULL |  |    
 | aes_allow |  | boolean | YES |  | 0 |  |    
 | ret-aes |  | boolean | YES |  | 0 |  |    
 | usehub |  | boolean | YES |  | 0 |  |    
@@ -50,7 +50,7 @@ contact table
 | last-update | Date of the last try to update the contact info | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | success_update | Date of the last successful contact update | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | failure_update | Date of the last failed update | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| failed | Connection failed | boolean | NO |  |  |  |    
+| failed | Connection failed | boolean | NO |  | NULL |  |    
 | name-date |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | uri-date |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | avatar-date |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
@@ -59,13 +59,13 @@ contact table
 | last-discovery | date of the last follower discovery | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | priority |  | tinyint unsigned | YES |  | 0 |  |    
 | blocked | Node-wide block status | boolean | YES |  | 1 |  |    
-| block_reason | Node-wide block reason | text | NO |  |  |  |    
+| block_reason | Node-wide block reason | text | NO |  | NULL |  |    
 | readonly | posts of the contact are readonly | boolean | YES |  | 0 |  |    
 | writable |  | boolean | YES |  | 0 |  |    
 | forum | contact is a forum | boolean | YES |  | 0 |  |    
 | prv | contact is a private group | boolean | YES |  | 0 |  |    
 | contact-type |  | tinyint | YES |  | 0 |  |    
-| manually-approve |  | boolean | NO |  |  |  |    
+| manually-approve |  | boolean | NO |  | NULL |  |    
 | hidden |  | boolean | YES |  | 0 |  |    
 | archive |  | boolean | YES |  | 0 |  |    
 | pending |  | boolean | YES |  | 1 |  |    
@@ -74,15 +74,15 @@ contact table
 | unsearchable | Contact prefers to not be searchable | boolean | YES |  | 0 |  |    
 | sensitive | Contact posts sensitive content | boolean | YES |  | 0 |  |    
 | baseurl | baseurl of the contact | varchar(255) | NO |  |  |  |    
-| gsid | Global Server ID | int unsigned | NO |  |  |  |    
-| reason |  | text | NO |  |  |  |    
+| gsid | Global Server ID | int unsigned | NO |  | NULL |  |    
+| reason |  | text | NO |  | NULL |  |    
 | closeness |  | tinyint unsigned | YES |  | 99 |  |    
-| info |  | mediumtext | NO |  |  |  |    
-| profile-id | Deprecated | int unsigned | NO |  |  |  |    
+| info |  | mediumtext | NO |  | NULL |  |    
+| profile-id | Deprecated | int unsigned | NO |  | NULL |  |    
 | bdyear |  | varchar(4) | YES |  |  |  |    
 | bd |  | date | YES |  | 0001-01-01 |  |    
 | notify_new_posts |  | boolean | YES |  | 0 |  |    
 | fetch_further_information |  | tinyint unsigned | YES |  | 0 |  |    
-| ffi_keyword_denylist |  | text | NO |  |  |  |    
+| ffi_keyword_denylist |  | text | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index bcea6012d6f3dcfe30e858b2a68fe9d5c55e7c2e..d3e40ebbec45a04d4ede0a4d0fe9c9d48a9ee8b1 100644 (file)
@@ -4,13 +4,13 @@ private messages
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | guid | A unique identifier for this conversation | varchar(255) | YES |  |  |  |    
-| recips | sender_handle;recipient_handle | text | NO |  |  |  |    
+| recips | sender_handle;recipient_handle | text | NO |  | NULL |  |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | creator | handle of creator | varchar(255) | YES |  |  |  |    
 | created | creation timestamp | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | updated | edited timestamp | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| subject | subject of initial message | text | NO |  |  |  |    
+| subject | subject of initial message | text | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index e9ce966905e6f4ed7bee3f5cacaee77eab4baa7b..6c1d5d8ce9af78a2303e39d6333c2968377dea50 100644 (file)
@@ -4,13 +4,13 @@ Raw data and structure information for messages
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| item-uri | Original URI of the item - unrelated to the table with the same name | varbinary(255) | YES | PRI |  |  |    
+| item-uri | Original URI of the item - unrelated to the table with the same name | varbinary(255) | YES | PRI | NULL |  |    
 | reply-to-uri | URI to which this item is a reply | varbinary(255) | YES |  |  |  |    
 | conversation-uri | GNU Social conversation URI | varbinary(255) | YES |  |  |  |    
 | conversation-href | GNU Social conversation link | varbinary(255) | YES |  |  |  |    
 | protocol | The protocol of the item | tinyint unsigned | YES |  | 255 |  |    
 | direction | How the message arrived here: 1=push, 2=pull | tinyint unsigned | YES |  | 0 |  |    
-| source | Original source | mediumtext | NO |  |  |  |    
+| source | Original source | mediumtext | NO |  | NULL |  |    
 | received | Receiving date | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index 3f83f49c2433e7a344c9236d0c8934338906498f..732131a602a1c0c602adc8300d91e64daeb20284 100644 (file)
@@ -4,9 +4,9 @@ Posts that are about to be distributed at a later time
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
-| uri | URI of the post that will be distributed later | varchar(255) | NO |  |  |  |    
-| uid | Owner User id | mediumint unsigned | NO |  |  |  |    
-| delayed | delay time | datetime | NO |  |  |  |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
+| uri | URI of the post that will be distributed later | varchar(255) | NO |  | NULL |  |    
+| uid | Owner User id | mediumint unsigned | NO |  | NULL |  |    
+| delayed | delay time | datetime | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index f2906e9d270de4a6bd13d8d9bd6ff2e8c0e39128..f8435b71dc4380859979f3860491d8734339a46a 100644 (file)
@@ -4,7 +4,7 @@ Signed Diaspora Interaction
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
-| interaction | The Diaspora interaction | mediumtext | NO |  |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
+| interaction | The Diaspora interaction | mediumtext | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 9c46939f3c9fec61b0ef3bae94dcb87ba4032bdd..d7ef08fcdc416f598e3e0dabbdd2a883e29eeb6c 100644 (file)
@@ -4,7 +4,7 @@ Events
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | guid |  | varchar(255) | YES |  |  |  |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | cid | contact_id (ID of the contact in contact table) | int unsigned | YES |  | 0 |  |    
@@ -13,16 +13,16 @@ Events
 | edited | last edit time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | start | event start time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | finish | event end time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| summary | short description or title of the event | text | NO |  |  |  |    
-| desc | event description | text | NO |  |  |  |    
-| location | event location | text | NO |  |  |  |    
+| summary | short description or title of the event | text | NO |  | NULL |  |    
+| desc | event description | text | NO |  | NULL |  |    
+| location | event location | text | NO |  | NULL |  |    
 | type | event or birthday | varchar(20) | YES |  |  |  |    
 | nofinish | if event does have no end this is 1 | boolean | YES |  | 0 |  |    
 | adjust | adjust to timezone of the recipient (0 or 1) | boolean | YES |  | 1 |  |    
 | ignore | 0 or 1 | boolean | YES |  | 0 |  |    
-| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt;&#039; | mediumtext | NO |  |  |  |    
-| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  |  |  |    
-| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  |  |  |    
-| deny_gid | Access Control - list of denied groups | mediumtext | NO |  |  |  |    
+| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt;&#039; | mediumtext | NO |  | NULL |  |    
+| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  | NULL |  |    
+| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  | NULL |  |    
+| deny_gid | Access Control - list of denied groups | mediumtext | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index ed468633d07c8384a3bc633763fda09167fa55c9..c38df0a04eb3ed055453721276ff8d213e8a5598 100644 (file)
@@ -4,7 +4,7 @@ Diaspora compatible contacts - used in the Diaspora implementation
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | guid | unique id | varchar(255) | YES |  |  |  |    
 | url |  | varchar(255) | YES |  |  |  |    
 | name |  | varchar(255) | YES |  |  |  |    
@@ -19,7 +19,7 @@ Diaspora compatible contacts - used in the Diaspora implementation
 | priority |  | tinyint unsigned | YES |  | 0 |  |    
 | network |  | char(4) | YES |  |  |  |    
 | alias |  | varchar(255) | YES |  |  |  |    
-| pubkey |  | text | NO |  |  |  |    
+| pubkey |  | text | NO |  | NULL |  |    
 | updated |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index 66865b506350bab17d53f8c5159c0ff76b3042a1..8b37f268e6dd4af0c5fa1aa7f980459592affc31 100644 (file)
@@ -4,14 +4,14 @@ friend suggestion stuff
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | cid |  | int unsigned | YES |  | 0 |  |    
 | name |  | varchar(255) | YES |  |  |  |    
 | url |  | varchar(255) | YES |  |  |  |    
 | request |  | varchar(255) | YES |  |  |  |    
 | photo |  | varchar(255) | YES |  |  |  |    
-| note |  | text | NO |  |  |  |    
+| note |  | text | NO |  | NULL |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index f4f60436cdd9993192a0549ed056df0fac00df3f..d9eb2a4ddf8ff4d3804a8ce9c04e176612fc3df5 100644 (file)
@@ -4,7 +4,7 @@ privacy groups, group info
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | visible | 1 indicates the member list is not private | boolean | YES |  | 0 |  |    
 | deleted | 1 indicates the group has been deleted | boolean | YES |  | 0 |  |    
index a4ecfdf7db34e13d9edecd1ad1db314d84049b56..db53bb567023b3c65294d1b7286b17954cc4a429 100644 (file)
@@ -4,7 +4,7 @@ privacy groups, member info
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | gid | groups.id of the associated group | int unsigned | YES |  | 0 |  |    
 | contact-id | contact.id of the member assigned to the associated group | int unsigned | YES |  | 0 |  |    
 
index 919363def739d69a7035a78327f67cf64fbad56d..6efc2a9f92ea6d6303a7adff7c364b6aa463530a 100644 (file)
@@ -4,28 +4,28 @@ Global servers
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | url |  | varchar(255) | YES |  |  |  |    
 | nurl |  | varchar(255) | YES |  |  |  |    
 | version |  | varchar(255) | YES |  |  |  |    
 | site_name |  | varchar(255) | YES |  |  |  |    
-| info |  | text | NO |  |  |  |    
+| info |  | text | NO |  | NULL |  |    
 | register_policy |  | tinyint | YES |  | 0 |  |    
 | registered-users | Number of registered users | int unsigned | YES |  | 0 |  |    
 | directory-type | Type of directory service (Poco, Mastodon) | tinyint | NO |  | 0 |  |    
 | poco |  | varchar(255) | YES |  |  |  |    
 | noscrape |  | varchar(255) | YES |  |  |  |    
 | network |  | char(4) | YES |  |  |  |    
-| protocol | The protocol of the server | tinyint unsigned | NO |  |  |  |    
+| protocol | The protocol of the server | tinyint unsigned | NO |  | NULL |  |    
 | platform |  | varchar(255) | YES |  |  |  |    
 | relay-subscribe | Has the server subscribed to the relay system | boolean | YES |  | 0 |  |    
 | relay-scope | The scope of messages that the server wants to get | varchar(10) | YES |  |  |  |    
-| detection-method | Method that had been used to detect that server | tinyint unsigned | NO |  |  |  |    
+| detection-method | Method that had been used to detect that server | tinyint unsigned | NO |  | NULL |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | last_poco_query |  | datetime | NO |  | 0001-01-01 00:00:00 |  |    
 | last_contact | Last successful connection request | datetime | NO |  | 0001-01-01 00:00:00 |  |    
 | last_failure | Last failed connection request | datetime | NO |  | 0001-01-01 00:00:00 |  |    
-| failed | Connection failed | boolean | NO |  |  |  |    
+| failed | Connection failed | boolean | NO |  | NULL |  |    
 | next_contact | Next connection request | datetime | NO |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index 71be258f3d08b018a5d4b62396008289031b0bc5..44fcf5668ce8d6cb4e48ea0f072a8ea35d97e2b8 100644 (file)
@@ -4,7 +4,7 @@ addon hook registry
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | hook | name of hook | varbinary(100) | YES |  |  |  |    
 | file | relative filename of hook handler | varbinary(200) | YES |  |  |  |    
 | function | function name of hook handler | varbinary(200) | YES |  |  |  |    
index 0ce2932286cdd44a16310ac1b71349cacd730244..befb04d6085216b5732e06bd3bcdbdf422fded38 100644 (file)
@@ -4,7 +4,7 @@ Hostname
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | tinyint unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | tinyint unsigned | YES | PRI | NULL | auto_increment |    
 | name | The hostname | varchar(128) | YES |  |  |  |    
 
 Return to [database documentation](help/database)
index 93e99dc5d4977ac23d5a3fa1a7eff6a671d73ecc..81dbb849325ea62ac734064971d2379a12dca55e 100644 (file)
@@ -4,7 +4,7 @@ Status of ActivityPub inboxes
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| url | URL of the inbox | varbinary(255) | YES | PRI |  |  |    
+| url | URL of the inbox | varbinary(255) | YES | PRI | NULL |  |    
 | created | Creation date of this entry | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | success | Date of the last successful delivery | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | failure | Date of the last failed delivery | datetime | YES |  | 0001-01-01 00:00:00 |  |    
index a05494de5c4734f4401fefd03271c8f2289b3af4..34444303d45e8f4efa271fc78d19fe0abf214278 100644 (file)
@@ -4,13 +4,13 @@ Table intro
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
-| fid |  | int unsigned | NO |  |  |  |    
+| fid |  | int unsigned | NO |  | NULL |  |    
 | contact-id |  | int unsigned | YES |  | 0 |  |    
 | knowyou |  | boolean | YES |  | 0 |  |    
 | duplex |  | boolean | YES |  | 0 |  |    
-| note |  | text | NO |  |  |  |    
+| note |  | text | NO |  | NULL |  |    
 | hash |  | varchar(255) | YES |  |  |  |    
 | datetime |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | blocked |  | boolean | YES |  | 1 |  |    
index 5f1d447147bda877d373a040363103824a058b82..1fb4f9b950e54f5d9aa8d0c54f7576ed1b18d36b 100644 (file)
@@ -4,8 +4,8 @@ URI and GUID for items
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
-| uri | URI of an item | varbinary(255) | YES |  |  |  |    
-| guid | A unique identifier for an item | varbinary(255) | NO |  |  |  |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
+| uri | URI of an item | varbinary(255) | YES |  | NULL |  |    
+| guid | A unique identifier for an item | varbinary(255) | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 3c219c2cc56641e31c18e4577070c4c83cc5da1b..774e9ed9b1fcaa31565e0f433a7a8c4a172423f2 100644 (file)
@@ -4,7 +4,7 @@ Table locks
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | name |  | varchar(128) | YES |  |  |  |    
 | locked |  | boolean | YES |  | 0 |  |    
 | pid | Process ID | int unsigned | YES |  | 0 |  |    
index 43c9baf33c7f20f40b61a19cd7ae969b71645e60..75ecf6a9f496549ffa04fd7410fc89c3fbf58267 100644 (file)
@@ -4,27 +4,27 @@ private messages
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | guid | A unique identifier for this private message | varchar(255) | YES |  |  |  |    
 | from-name | name of the sender | varchar(255) | YES |  |  |  |    
 | from-photo | contact photo link of the sender | varchar(255) | YES |  |  |  |    
 | from-url | profile linke of the sender | varchar(255) | YES |  |  |  |    
-| contact-id | contact.id | varchar(255) | NO |  |  |  |    
-| author-id | Link to the contact table with uid=0 of the author of the mail | int unsigned | NO |  |  |  |    
-| convid | conv.id | int unsigned | NO |  |  |  |    
+| contact-id | contact.id | varchar(255) | NO |  | NULL |  |    
+| author-id | Link to the contact table with uid=0 of the author of the mail | int unsigned | NO |  | NULL |  |    
+| convid | conv.id | int unsigned | NO |  | NULL |  |    
 | title |  | varchar(255) | YES |  |  |  |    
-| body |  | mediumtext | NO |  |  |  |    
+| body |  | mediumtext | NO |  | NULL |  |    
 | seen | if message visited it is 1 | boolean | YES |  | 0 |  |    
 | reply |  | boolean | YES |  | 0 |  |    
 | replied |  | boolean | YES |  | 0 |  |    
 | unknown | if sender not in the contact table this is 1 | boolean | YES |  | 0 |  |    
 | uri |  | varchar(255) | YES |  |  |  |    
-| uri-id | Item-uri id of the related mail | int unsigned | NO |  |  |  |    
+| uri-id | Item-uri id of the related mail | int unsigned | NO |  | NULL |  |    
 | parent-uri |  | varchar(255) | YES |  |  |  |    
-| parent-uri-id | Item-uri id of the parent of the related mail | int unsigned | NO |  |  |  |    
-| thr-parent |  | varchar(255) | NO |  |  |  |    
-| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  |  |  |    
+| parent-uri-id | Item-uri id of the parent of the related mail | int unsigned | NO |  | NULL |  |    
+| thr-parent |  | varchar(255) | NO |  | NULL |  |    
+| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  | NULL |  |    
 | created | creation time of the private message | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index 2c2b4e7af4bf450e0b353e1430d63a0296fbbece..898116fd08b4d8172a4fa3d022428e2a0f36768d 100644 (file)
@@ -4,14 +4,14 @@ Mail account data for fetching mails
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | server |  | varchar(255) | YES |  |  |  |    
 | port |  | smallint unsigned | YES |  | 0 |  |    
 | ssltype |  | varchar(16) | YES |  |  |  |    
 | mailbox |  | varchar(255) | YES |  |  |  |    
 | user |  | varchar(255) | YES |  |  |  |    
-| pass |  | text | NO |  |  |  |    
+| pass |  | text | NO |  | NULL |  |    
 | reply_to |  | varchar(255) | YES |  |  |  |    
 | action |  | tinyint unsigned | YES |  | 0 |  |    
 | movetofolder |  | varchar(255) | YES |  |  |  |    
index 94994ec9b05cc5f075e5989eb81d531a1468d811..53d44a4d421176af77e032a91a1cec6beb669946 100644 (file)
@@ -4,7 +4,7 @@ table of accounts that can manage each other
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | mid | User id | mediumint unsigned | YES |  | 0 |  |    
 
index f4e524d73c40be1d1e1ab08f903fb7a993d8d953..51240b493fa10f5a394d8152c37d35acca4cd313 100644 (file)
@@ -4,14 +4,14 @@ notifications
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
-| uid | Owner User id | mediumint unsigned | NO |  |  |  |    
-| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  |  |  |    
-| type |  | tinyint unsigned | NO |  |  |  |    
-| actor-id | Link to the contact table with uid=0 of the actor that caused the notification | int unsigned | NO |  |  |  |    
-| target-uri-id | Item-uri id of the related post | int unsigned | NO |  |  |  |    
-| parent-uri-id | Item-uri id of the parent of the related post | int unsigned | NO |  |  |  |    
-| created |  | datetime | NO |  |  |  |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
+| uid | Owner User id | mediumint unsigned | NO |  | NULL |  |    
+| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  | NULL |  |    
+| type |  | tinyint unsigned | NO |  | NULL |  |    
+| actor-id | Link to the contact table with uid=0 of the actor that caused the notification | int unsigned | NO |  | NULL |  |    
+| target-uri-id | Item-uri id of the related post | int unsigned | NO |  | NULL |  |    
+| parent-uri-id | Item-uri id of the parent of the related post | int unsigned | NO |  | NULL |  |    
+| created |  | datetime | NO |  | NULL |  |    
 | seen |  | boolean | NO |  | 0 |  |    
 
 Return to [database documentation](help/database)
index a788e82242d75be57ce2f920d369b37bf55e35df..18c443444c561fa7f2d6b6921a941fbde44c7535 100644 (file)
@@ -4,10 +4,10 @@ Table notify-threads
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | notify-id |  | int unsigned | YES |  | 0 |  |    
-| master-parent-item | Deprecated | int unsigned | NO |  |  |  |    
-| master-parent-uri-id | Item-uri id of the parent of the related post | int unsigned | NO |  |  |  |    
+| master-parent-item | Deprecated | int unsigned | NO |  | NULL |  |    
+| master-parent-uri-id | Item-uri id of the parent of the related post | int unsigned | NO |  | NULL |  |    
 | parent-item |  | int unsigned | YES |  | 0 |  |    
 | receiver-uid | User id | mediumint unsigned | YES |  | 0 |  |    
 
index 360e93ba2435ea4eba62cbb64efa372c62f998b0..58d4d923d270c945aa2923f4311d19c251b8f62d 100644 (file)
@@ -4,23 +4,23 @@ notifications
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | type |  | smallint unsigned | YES |  | 0 |  |    
 | name |  | varchar(255) | YES |  |  |  |    
 | url |  | varchar(255) | YES |  |  |  |    
 | photo |  | varchar(255) | YES |  |  |  |    
 | date |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
-| msg |  | mediumtext | NO |  |  |  |    
+| msg |  | mediumtext | NO |  | NULL |  |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | link |  | varchar(255) | YES |  |  |  |    
-| iid |  | int unsigned | NO |  |  |  |    
-| parent |  | int unsigned | NO |  |  |  |    
-| uri-id | Item-uri id of the related post | int unsigned | NO |  |  |  |    
-| parent-uri-id | Item-uri id of the parent of the related post | int unsigned | NO |  |  |  |    
+| iid |  | int unsigned | NO |  | NULL |  |    
+| parent |  | int unsigned | NO |  | NULL |  |    
+| uri-id | Item-uri id of the related post | int unsigned | NO |  | NULL |  |    
+| parent-uri-id | Item-uri id of the parent of the related post | int unsigned | NO |  | NULL |  |    
 | seen |  | boolean | YES |  | 0 |  |    
 | verb |  | varchar(100) | YES |  |  |  |    
 | otype |  | varchar(10) | YES |  |  |  |    
-| name_cache | Cached bbcode parsing of name | tinytext | NO |  |  |  |    
-| msg_cache | Cached bbcode parsing of msg | mediumtext | NO |  |  |  |    
+| name_cache | Cached bbcode parsing of name | tinytext | NO |  | NULL |  |    
+| msg_cache | Cached bbcode parsing of msg | mediumtext | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index e08af5f010bdbf990247f88c10c2a991cefef74c..e74bfb7100fb9cf68681a7874b8417ff06942ac0 100644 (file)
@@ -4,9 +4,9 @@ cache for OEmbed queries
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| url | page url | varbinary(255) | YES | PRI |  |  |    
-| maxwidth | Maximum width passed to Oembed | mediumint unsigned | YES | PRI |  |  |    
-| content | OEmbed data of the page | mediumtext | NO |  |  |  |    
+| url | page url | varbinary(255) | YES | PRI | NULL |  |    
+| maxwidth | Maximum width passed to Oembed | mediumint unsigned | YES | PRI | NULL |  |    
+| content | OEmbed data of the page | mediumtext | NO |  | NULL |  |    
 | created | datetime of creation | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index 98fa7b6a419cc6e798931950926f7c2c9655d5cd..3b2cab372658274a5f1eacaf43886254baea1990 100644 (file)
@@ -4,7 +4,7 @@ Store OpenWebAuth token to verify contacts
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id - currently unused | mediumint unsigned | YES |  | 0 |  |    
 | type | Verify type | varchar(32) | YES |  |  |  |    
 | token | A generated token | varchar(255) | YES |  |  |  |    
index 9b2912ccea6264b47eb479df63b642e5b68f12a4..bf4b7117f59f3d950fe060f9fc24b7eb05e6422e 100644 (file)
@@ -4,11 +4,11 @@ cache for &#039;parse_url&#039; queries
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| url_hash | page url hash | binary(64) | YES | PRI |  |  |    
+| url_hash | page url hash | binary(64) | YES | PRI | NULL |  |    
 | guessing | is the &#039;guessing&#039; mode active? | boolean | YES | PRI | 0 |  |    
 | oembed | is the data the result of oembed? | boolean | YES | PRI | 0 |  |    
-| url | page url | text | YES |  |  |  |    
-| content | page data | mediumtext | NO |  |  |  |    
+| url | page url | text | YES |  | NULL |  |    
+| content | page data | mediumtext | NO |  | NULL |  |    
 | created | datetime of creation | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | expires | datetime of expiration | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
index 2bffcff5ad8c9d02600422ab750f28c7e47aca95..7c71d53053424668f99cf3bf47f99ce7af38da3b 100644 (file)
@@ -4,10 +4,10 @@ personal (per user) configuration storage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | Primary key | int unsigned | YES | PRI |  | auto_increment |    
+| id | Primary key | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | cat | Category | varchar(50) | YES |  |  |  |    
 | k | Key | varchar(100) | YES |  |  |  |    
-| v | Value | mediumtext | NO |  |  |  |    
+| v | Value | mediumtext | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 0e60ff38009ab5eb339a91d13f70f2026c7eb3b4..3086d8a9438c6cf742a9ae8d4f48d117740483da 100644 (file)
@@ -4,11 +4,11 @@ Table permissionset
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner id of this permission set | mediumint unsigned | YES |  | 0 |  |    
-| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt;&#039; | mediumtext | NO |  |  |  |    
-| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  |  |  |    
-| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  |  |  |    
-| deny_gid | Access Control - list of denied groups | mediumtext | NO |  |  |  |    
+| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt;&#039; | mediumtext | NO |  | NULL |  |    
+| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  | NULL |  |    
+| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  | NULL |  |    
+| deny_gid | Access Control - list of denied groups | mediumtext | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index ef8f2b1824592de41d0f910a6f97ce29557b7301..3834e72a49125079953053e5dcfd5f0659095548 100644 (file)
@@ -4,32 +4,32 @@ photo storage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
 | contact-id | contact.id | int unsigned | YES |  | 0 |  |    
 | guid | A unique identifier for this photo | char(16) | YES |  |  |  |    
 | resource-id |  | char(32) | YES |  |  |  |    
-| hash | hash value of the photo | char(32) | NO |  |  |  |    
+| hash | hash value of the photo | char(32) | NO |  | NULL |  |    
 | created | creation date | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | edited | last edited date | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | title |  | varchar(255) | YES |  |  |  |    
-| desc |  | text | NO |  |  |  |    
+| desc |  | text | NO |  | NULL |  |    
 | album | The name of the album to which the photo belongs | varchar(255) | YES |  |  |  |    
 | filename |  | varchar(255) | YES |  |  |  |    
 | type |  | varchar(30) | YES |  | image/jpeg |  |    
 | height |  | smallint unsigned | YES |  | 0 |  |    
 | width |  | smallint unsigned | YES |  | 0 |  |    
 | datasize |  | int unsigned | YES |  | 0 |  |    
-| data |  | mediumblob | YES |  |  |  |    
+| data |  | mediumblob | YES |  | NULL |  |    
 | scale |  | tinyint unsigned | YES |  | 0 |  |    
 | profile |  | boolean | YES |  | 0 |  |    
-| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt;&#039; | mediumtext | NO |  |  |  |    
-| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  |  |  |    
-| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  |  |  |    
-| deny_gid | Access Control - list of denied groups | mediumtext | NO |  |  |  |    
+| allow_cid | Access Control - list of allowed contact.id &#039;&lt;19&gt;&lt;78&gt;&#039; | mediumtext | NO |  | NULL |  |    
+| allow_gid | Access Control - list of allowed groups | mediumtext | NO |  | NULL |  |    
+| deny_cid | Access Control - list of denied contact.id | mediumtext | NO |  | NULL |  |    
+| deny_gid | Access Control - list of denied groups | mediumtext | NO |  | NULL |  |    
 | accessible | Make photo publicly accessible, ignoring permissions | boolean | YES |  | 0 |  |    
-| backend-class | Storage backend class | tinytext | NO |  |  |  |    
-| backend-ref | Storage backend data reference | text | NO |  |  |  |    
+| backend-class | Storage backend class | tinytext | NO |  | NULL |  |    
+| backend-ref | Storage backend data reference | text | NO |  | NULL |  |    
 | updated |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
 Return to [database documentation](help/database)
index 3765072d0ebe563b269ad610bed8f7f1b85fcb20..9be89de45577ec4e53ecadedb6608437666bec12 100644 (file)
@@ -4,7 +4,7 @@ post relation to categories
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
 | uid | User id | mediumint unsigned | YES | PRI | 0 |  |    
 | type |  | tinyint unsigned | YES | PRI | 0 |  |    
 | tid |  | int unsigned | YES | PRI | 0 |  |    
index 65e051cbdb24d48b32efcd9327d8ead94a134df9..c75c4172272db50d04efdfb27f2a66911f38a026 100644 (file)
@@ -4,21 +4,21 @@ Content for all posts
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
 | title | item title | varchar(255) | YES |  |  |  |    
 | content-warning |  | varchar(255) | YES |  |  |  |    
-| body | item body content | mediumtext | NO |  |  |  |    
-| raw-body | Body without embedded media links | mediumtext | NO |  |  |  |    
+| body | item body content | mediumtext | NO |  | NULL |  |    
+| raw-body | Body without embedded media links | mediumtext | NO |  | NULL |  |    
 | location | text location where this item originated | varchar(255) | YES |  |  |  |    
 | coord | longitude/latitude pair representing location where this item originated | varchar(255) | YES |  |  |  |    
-| language | Language information about this post | text | NO |  |  |  |    
+| language | Language information about this post | text | NO |  | NULL |  |    
 | app | application which generated this item | varchar(255) | YES |  |  |  |    
 | rendered-hash |  | varchar(32) | YES |  |  |  |    
-| rendered-html | item.body converted to html | mediumtext | NO |  |  |  |    
+| rendered-html | item.body converted to html | mediumtext | NO |  | NULL |  |    
 | object-type | ActivityStreams object type | varchar(100) | YES |  |  |  |    
-| object | JSON encoded object structure unless it is an implied object (normal post) | text | NO |  |  |  |    
+| object | JSON encoded object structure unless it is an implied object (normal post) | text | NO |  | NULL |  |    
 | target-type | ActivityStreams target type if applicable (URI) | varchar(100) | YES |  |  |  |    
-| target | JSON encoded target structure if used | text | NO |  |  |  |    
+| target | JSON encoded target structure if used | text | NO |  | NULL |  |    
 | resource-id | Used to link other tables to items, it identifies the linked resource (e.g. photo) and if set must also set resource_type | varchar(32) | YES |  |  |  |    
 | plink | permalink or URL to a displayable copy of the message at its source | varchar(255) | YES |  |  |  |    
 
index d9efbe1804a32aeaa773bf1b475d9652eded9759..bf3289e266a2cced8c7d6df1d6e5afd86f3082c1 100644 (file)
@@ -4,9 +4,9 @@ Delivery data for items
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
-| postopts | External post connectors add their network name to this comma-separated string to identify that they should be delivered to these networks during delivery | text | NO |  |  |  |    
-| inform | Additional receivers of the linked item | mediumtext | NO |  |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
+| postopts | External post connectors add their network name to this comma-separated string to identify that they should be delivered to these networks during delivery | text | NO |  | NULL |  |    
+| inform | Additional receivers of the linked item | mediumtext | NO |  | NULL |  |    
 | queue_count | Initial number of delivery recipients, used as item.delivery_queue_count | mediumint | YES |  | 0 |  |    
 | queue_done | Number of successful deliveries, used as item.delivery_queue_done | mediumint | YES |  | 0 |  |    
 | queue_failed | Number of unsuccessful deliveries, used as item.delivery_queue_failed | mediumint | YES |  | 0 |  |    
index 4115301c0a95ad524da8081449f9291142cf4a26..58f1ed7030074154a1e65cb03874f0ef17c43578 100644 (file)
@@ -4,24 +4,24 @@ Attached media
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES |  |  |  |    
-| url | Media URL | varbinary(511) | YES |  |  |  |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES |  | NULL |  |    
+| url | Media URL | varbinary(511) | YES |  | NULL |  |    
 | type | Media type | tinyint unsigned | YES |  | 0 |  |    
-| mimetype |  | varchar(60) | NO |  |  |  |    
-| height | Height of the media | smallint unsigned | NO |  |  |  |    
-| width | Width of the media | smallint unsigned | NO |  |  |  |    
-| size | Media size | int unsigned | NO |  |  |  |    
-| preview | Preview URL | varbinary(255) | NO |  |  |  |    
-| preview-height | Height of the preview picture | smallint unsigned | NO |  |  |  |    
-| preview-width | Width of the preview picture | smallint unsigned | NO |  |  |  |    
-| description |  | text | NO |  |  |  |    
-| name | Name of the media | varchar(255) | NO |  |  |  |    
-| author-url | URL of the author of the media | varbinary(255) | NO |  |  |  |    
-| author-name | Name of the author of the media | varchar(255) | NO |  |  |  |    
-| author-image | Image of the author of the media | varbinary(255) | NO |  |  |  |    
-| publisher-url | URL of the publisher of the media | varbinary(255) | NO |  |  |  |    
-| publisher-name | Name of the publisher of the media | varchar(255) | NO |  |  |  |    
-| publisher-image | Image of the publisher of the media | varbinary(255) | NO |  |  |  |    
+| mimetype |  | varchar(60) | NO |  | NULL |  |    
+| height | Height of the media | smallint unsigned | NO |  | NULL |  |    
+| width | Width of the media | smallint unsigned | NO |  | NULL |  |    
+| size | Media size | int unsigned | NO |  | NULL |  |    
+| preview | Preview URL | varbinary(255) | NO |  | NULL |  |    
+| preview-height | Height of the preview picture | smallint unsigned | NO |  | NULL |  |    
+| preview-width | Width of the preview picture | smallint unsigned | NO |  | NULL |  |    
+| description |  | text | NO |  | NULL |  |    
+| name | Name of the media | varchar(255) | NO |  | NULL |  |    
+| author-url | URL of the author of the media | varbinary(255) | NO |  | NULL |  |    
+| author-name | Name of the author of the media | varchar(255) | NO |  | NULL |  |    
+| author-image | Image of the author of the media | varbinary(255) | NO |  | NULL |  |    
+| publisher-url | URL of the publisher of the media | varbinary(255) | NO |  | NULL |  |    
+| publisher-name | Name of the publisher of the media | varchar(255) | NO |  | NULL |  |    
+| publisher-image | Image of the publisher of the media | varbinary(255) | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 6beccad706bd57745e45e81ab2c17c429c6f22b1..9c33ec2ae4576d259232410363a038a39da14f58 100644 (file)
@@ -4,7 +4,7 @@ post relation to tags
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
 | type |  | tinyint unsigned | YES | PRI | 0 |  |    
 | tid |  | int unsigned | YES | PRI | 0 |  |    
 | cid | Contact id of the mentioned public contact | int unsigned | YES | PRI | 0 |  |    
index 375728050de6115a2dc1a8b3433c9ac74a33f674..9a3a996fcc70db06d050c86beb600879dcbe879c 100644 (file)
@@ -4,10 +4,10 @@ Thread related data per user
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
 | owner-id | Item owner | int unsigned | YES |  | 0 |  |    
 | author-id | Item author | int unsigned | YES |  | 0 |  |    
-| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  |  |  |    
+| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  | NULL |  |    
 | network |  | char(4) | YES |  |  |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | received |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
@@ -25,7 +25,7 @@ Thread related data per user
 | unseen | post has not been seen | boolean | YES |  | 1 |  |    
 | hidden | Marker to hide the post from the user | boolean | YES |  | 0 |  |    
 | origin | item originated at this site | boolean | YES |  | 0 |  |    
-| psid | ID of the permission set of this post | int unsigned | NO |  |  |  |    
-| post-user-id | Id of the post-user table | int unsigned | NO |  |  |  |    
+| psid | ID of the permission set of this post | int unsigned | NO |  | NULL |  |    
+| post-user-id | Id of the post-user table | int unsigned | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 301a16a66fab36a0bf8e01e9835825929c283d2c..49fac4fd910a4b7eedf97da646891aa74d43b6c4 100644 (file)
@@ -4,10 +4,10 @@ Thread related data
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
 | owner-id | Item owner | int unsigned | YES |  | 0 |  |    
 | author-id | Item author | int unsigned | YES |  | 0 |  |    
-| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  |  |  |    
+| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  | NULL |  |    
 | network |  | char(4) | YES |  |  |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | received |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
index 4ceea2a6832da6d35af01d5d1d9c0e1e99e94a8a..01727e26672e1e32276aa2134232af3cdc256781 100644 (file)
@@ -4,8 +4,8 @@ User post notifications
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
-| uid | Owner id which owns this copy of the item | mediumint unsigned | YES | PRI |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
+| uid | Owner id which owns this copy of the item | mediumint unsigned | YES | PRI | NULL |  |    
 | notification-type |  | tinyint unsigned | YES |  | 0 |  |    
 
 Return to [database documentation](help/database)
index da6312b1deffb73ac6782b21419cf0c0a75d0615..58fa6f902a6c6b95740cc84521156b7c538af235 100644 (file)
@@ -4,11 +4,11 @@ User specific post data
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES |  |  |  |    
-| parent-uri-id | Id of the item-uri table that contains the parent uri | int unsigned | NO |  |  |  |    
-| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  |  |  |    
-| external-id | Id of the item-uri table entry that contains the external uri | int unsigned | NO |  |  |  |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES |  | NULL |  |    
+| parent-uri-id | Id of the item-uri table that contains the parent uri | int unsigned | NO |  | NULL |  |    
+| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  | NULL |  |    
+| external-id | Id of the item-uri table entry that contains the external uri | int unsigned | NO |  | NULL |  |    
 | created | Creation timestamp. | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | edited | Date of last edit (default is created) | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | received | datetime | datetime | YES |  | 0001-01-01 00:00:00 |  |    
@@ -16,23 +16,23 @@ User specific post data
 | network | Network from where the item comes from | char(4) | YES |  |  |  |    
 | owner-id | Link to the contact table with uid=0 of the owner of this item | int unsigned | YES |  | 0 |  |    
 | author-id | Link to the contact table with uid=0 of the author of this item | int unsigned | YES |  | 0 |  |    
-| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  |  |  |    
+| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  | NULL |  |    
 | post-type | Post type (personal note, image, article, ...) | tinyint unsigned | YES |  | 0 |  |    
 | post-reason | Reason why the post arrived at the user | tinyint unsigned | YES |  | 0 |  |    
-| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  |  |  |    
+| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  | NULL |  |    
 | private | 0=public, 1=private, 2=unlisted | tinyint unsigned | YES |  | 0 |  |    
 | global |  | boolean | YES |  | 0 |  |    
 | visible |  | boolean | YES |  | 0 |  |    
 | deleted | item has been marked for deletion | boolean | YES |  | 0 |  |    
-| uid | Owner id which owns this copy of the item | mediumint unsigned | YES |  |  |  |    
-| protocol | Protocol used to deliver the item for this user | tinyint unsigned | NO |  |  |  |    
+| uid | Owner id which owns this copy of the item | mediumint unsigned | YES |  | NULL |  |    
+| protocol | Protocol used to deliver the item for this user | tinyint unsigned | NO |  | NULL |  |    
 | contact-id | contact.id | int unsigned | YES |  | 0 |  |    
-| event-id | Used to link to the event.id | int unsigned | NO |  |  |  |    
+| event-id | Used to link to the event.id | int unsigned | NO |  | NULL |  |    
 | unseen | post has not been seen | boolean | YES |  | 1 |  |    
 | hidden | Marker to hide the post from the user | boolean | YES |  | 0 |  |    
 | notification-type |  | tinyint unsigned | YES |  | 0 |  |    
 | wall | This item was posted to the wall of uid | boolean | YES |  | 0 |  |    
 | origin | item originated at this site | boolean | YES |  | 0 |  |    
-| psid | ID of the permission set of this post | int unsigned | NO |  |  |  |    
+| psid | ID of the permission set of this post | int unsigned | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index f8e09b05b01cff0e863b858f54bee8c75f0bf4b2..020e5e9c9fb630be834d0c5131de072ae8a8e1b4 100644 (file)
@@ -4,10 +4,10 @@ Structure for all posts
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI |  |  |    
-| parent-uri-id | Id of the item-uri table that contains the parent uri | int unsigned | NO |  |  |  |    
-| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  |  |  |    
-| external-id | Id of the item-uri table entry that contains the external uri | int unsigned | NO |  |  |  |    
+| uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | YES | PRI | NULL |  |    
+| parent-uri-id | Id of the item-uri table that contains the parent uri | int unsigned | NO |  | NULL |  |    
+| thr-parent-id | Id of the item-uri table that contains the thread parent uri | int unsigned | NO |  | NULL |  |    
+| external-id | Id of the item-uri table entry that contains the external uri | int unsigned | NO |  | NULL |  |    
 | created | Creation timestamp. | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | edited | Date of last edit (default is created) | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | received | datetime | datetime | YES |  | 0001-01-01 00:00:00 |  |    
@@ -15,9 +15,9 @@ Structure for all posts
 | network | Network from where the item comes from | char(4) | YES |  |  |  |    
 | owner-id | Link to the contact table with uid=0 of the owner of this item | int unsigned | YES |  | 0 |  |    
 | author-id | Link to the contact table with uid=0 of the author of this item | int unsigned | YES |  | 0 |  |    
-| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  |  |  |    
+| causer-id | Link to the contact table with uid=0 of the contact that caused the item creation | int unsigned | NO |  | NULL |  |    
 | post-type | Post type (personal note, image, article, ...) | tinyint unsigned | YES |  | 0 |  |    
-| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  |  |  |    
+| vid | Id of the verb table entry that contains the activity verbs | smallint unsigned | NO |  | NULL |  |    
 | private | 0=public, 1=private, 2=unlisted | tinyint unsigned | YES |  | 0 |  |    
 | global |  | boolean | YES |  | 0 |  |    
 | visible |  | boolean | YES |  | 0 |  |    
index 8a2ad1ac88493f39f54a8e85779646fb1197f725..2c92fc84d35458fbc05e4a960a37ded710e2a937 100644 (file)
@@ -4,7 +4,7 @@ Currently running system processes
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| pid |  | int unsigned | YES | PRI |  |  |    
+| pid |  | int unsigned | YES | PRI | NULL |  |    
 | command |  | varbinary(32) | YES |  |  |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
index eb2297023b697cb3ccf4511acb765384616c594d..aa0e36066f1d89ce7f2bea3fcda9240e22c85cfd 100644 (file)
@@ -4,42 +4,42 @@ user profiles data
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner User id | mediumint unsigned | YES |  | 0 |  |    
-| profile-name | Deprecated | varchar(255) | NO |  |  |  |    
-| is-default | Deprecated | boolean | NO |  |  |  |    
+| profile-name | Deprecated | varchar(255) | NO |  | NULL |  |    
+| is-default | Deprecated | boolean | NO |  | NULL |  |    
 | hide-friends | Hide friend list from viewers of this profile | boolean | YES |  | 0 |  |    
 | name |  | varchar(255) | YES |  |  |  |    
-| pdesc | Deprecated | varchar(255) | NO |  |  |  |    
+| pdesc | Deprecated | varchar(255) | NO |  | NULL |  |    
 | dob | Day of birth | varchar(32) | YES |  | 0000-00-00 |  |    
 | address |  | varchar(255) | YES |  |  |  |    
 | locality |  | varchar(255) | YES |  |  |  |    
 | region |  | varchar(255) | YES |  |  |  |    
 | postal-code |  | varchar(32) | YES |  |  |  |    
 | country-name |  | varchar(255) | YES |  |  |  |    
-| hometown | Deprecated | varchar(255) | NO |  |  |  |    
-| gender | Deprecated | varchar(32) | NO |  |  |  |    
-| marital | Deprecated | varchar(255) | NO |  |  |  |    
-| with | Deprecated | text | NO |  |  |  |    
-| howlong | Deprecated | datetime | NO |  |  |  |    
-| sexual | Deprecated | varchar(255) | NO |  |  |  |    
-| politic | Deprecated | varchar(255) | NO |  |  |  |    
-| religion | Deprecated | varchar(255) | NO |  |  |  |    
-| pub_keywords |  | text | NO |  |  |  |    
-| prv_keywords |  | text | NO |  |  |  |    
-| likes | Deprecated | text | NO |  |  |  |    
-| dislikes | Deprecated | text | NO |  |  |  |    
-| about | Profile description | text | NO |  |  |  |    
-| summary | Deprecated | varchar(255) | NO |  |  |  |    
-| music | Deprecated | text | NO |  |  |  |    
-| book | Deprecated | text | NO |  |  |  |    
-| tv | Deprecated | text | NO |  |  |  |    
-| film | Deprecated | text | NO |  |  |  |    
-| interest | Deprecated | text | NO |  |  |  |    
-| romance | Deprecated | text | NO |  |  |  |    
-| work | Deprecated | text | NO |  |  |  |    
-| education | Deprecated | text | NO |  |  |  |    
-| contact | Deprecated | text | NO |  |  |  |    
+| hometown | Deprecated | varchar(255) | NO |  | NULL |  |    
+| gender | Deprecated | varchar(32) | NO |  | NULL |  |    
+| marital | Deprecated | varchar(255) | NO |  | NULL |  |    
+| with | Deprecated | text | NO |  | NULL |  |    
+| howlong | Deprecated | datetime | NO |  | NULL |  |    
+| sexual | Deprecated | varchar(255) | NO |  | NULL |  |    
+| politic | Deprecated | varchar(255) | NO |  | NULL |  |    
+| religion | Deprecated | varchar(255) | NO |  | NULL |  |    
+| pub_keywords |  | text | NO |  | NULL |  |    
+| prv_keywords |  | text | NO |  | NULL |  |    
+| likes | Deprecated | text | NO |  | NULL |  |    
+| dislikes | Deprecated | text | NO |  | NULL |  |    
+| about | Profile description | text | NO |  | NULL |  |    
+| summary | Deprecated | varchar(255) | NO |  | NULL |  |    
+| music | Deprecated | text | NO |  | NULL |  |    
+| book | Deprecated | text | NO |  | NULL |  |    
+| tv | Deprecated | text | NO |  | NULL |  |    
+| film | Deprecated | text | NO |  | NULL |  |    
+| interest | Deprecated | text | NO |  | NULL |  |    
+| romance | Deprecated | text | NO |  | NULL |  |    
+| work | Deprecated | text | NO |  | NULL |  |    
+| education | Deprecated | text | NO |  | NULL |  |    
+| contact | Deprecated | text | NO |  | NULL |  |    
 | homepage |  | varchar(255) | YES |  |  |  |    
 | xmpp |  | varchar(255) | YES |  |  |  |    
 | photo |  | varchar(255) | YES |  |  |  |    
index ed8c936fcbc5f9663d8d1a3a376f77e4d9132ead..b41a102732149f60f0776e8c685539ccb1734f25 100644 (file)
@@ -4,7 +4,7 @@ DFRN remote auth use
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | cid | contact.id | int unsigned | YES |  | 0 |  |    
 | dfrn_id |  | varchar(255) | YES |  |  |  |    
index 9a0b9fda11faab4c8a1416021057291b3e47fd8a..4018f1256f29debc189de2ac6e3990582541aa3c 100644 (file)
@@ -4,12 +4,12 @@ Custom profile fields
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | Owner user id | mediumint unsigned | YES |  | 0 |  |    
 | order | Field ordering per user | mediumint unsigned | YES |  | 1 |  |    
-| psid | ID of the permission set of this profile field - 0 = public | int unsigned | NO |  |  |  |    
+| psid | ID of the permission set of this profile field - 0 = public | int unsigned | NO |  | NULL |  |    
 | label | Label of the field | varchar(255) | YES |  |  |  |    
-| value | Value of the field | text | NO |  |  |  |    
+| value | Value of the field | text | NO |  | NULL |  |    
 | created | creation time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | edited | last edit time | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 
index 97b3f0fc061d7e47c9c7fa5df72915191f3075c6..d745db6d2e569636b8d4fa3b4a0ec573a9fd9243 100644 (file)
@@ -4,7 +4,7 @@ Used for OStatus: Contains feed subscribers
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | callback_url |  | varchar(255) | YES |  |  |  |    
 | topic |  | varchar(255) | YES |  |  |  |    
index f2bc2c28d55956aac3610d5230931c96946c82e5..fe2f18ba84cdcb51cea3d8e08b9d67e3ccc82ad9 100644 (file)
@@ -4,12 +4,12 @@ registrations requiring admin approval
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | hash |  | varchar(255) | YES |  |  |  |    
 | created |  | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | password |  | varchar(255) | YES |  |  |  |    
 | language |  | varchar(16) | YES |  |  |  |    
-| note |  | text | NO |  |  |  |    
+| note |  | text | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index a5f5e11f268aa292d860be7de717357ed5f9d396..994a3ffbf22e3cd9bf9561fd6ec42f42a2413238 100644 (file)
@@ -4,7 +4,7 @@ Table search
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
 | uid | User id | mediumint unsigned | YES |  | 0 |  |    
 | term |  | varchar(255) | YES |  |  |  |    
 
index 1e3e1f3776b76918204b2e934fa3ce1de212700f..80916366a2d905394ad4fe19eaadc9d2b0c09b91 100644 (file)
@@ -4,9 +4,9 @@ web session storage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | bigint unsigned | YES | PRI |  | auto_increment |    
+| id | sequential ID | bigint unsigned | YES | PRI | NULL | auto_increment |    
 | sid |  | varbinary(255) | YES |  |  |  |    
-| data |  | text | NO |  |  |  |    
+| data |  | text | NO |  | NULL |  |    
 | expire |  | int unsigned | YES |  | 0 |  |    
 
 Return to [database documentation](help/database)
index 77795196b4a29e1681533e2e7249f0b6d34a91b9..376f0cb225234fc44be994a122492e5edf275644 100644 (file)
@@ -4,7 +4,7 @@ Data stored by Database storage backend
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | Auto incremented image data id | int unsigned | YES | PRI |  | auto_increment |    
-| data | file data | longblob | YES |  |  |  |    
+| id | Auto incremented image data id | int unsigned | YES | PRI | NULL | auto_increment |    
+| data | file data | longblob | YES |  | NULL |  |    
 
 Return to [database documentation](help/database)
index bc7cfa4f5030992d2bc9c190b0a5f3f8e4f01921..3fb7d7d8fc85b05d00c6c3e5d3fb69cad360aa5d 100644 (file)
@@ -4,7 +4,7 @@ tags and mentions
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | int unsigned | YES | PRI |  | auto_increment |    
+| id |  | int unsigned | YES | PRI | NULL | auto_increment |    
 | name |  | varchar(96) | YES |  |  |  |    
 | url |  | varbinary(255) | YES |  |  |  |    
 
index ade6543660c992aa900a5e78d69674725335e037..93510a16e79949f82c7680c3588401b665a39e85 100644 (file)
@@ -4,8 +4,8 @@ OAuth usage
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | varchar(40) | YES | PRI |  |  |    
-| secret |  | text | NO |  |  |  |    
+| id |  | varchar(40) | YES | PRI | NULL |  |    
+| secret |  | text | NO |  | NULL |  |    
 | client_id |  | varchar(20) | YES |  |  |  |    
 | expires |  | int | YES |  | 0 |  |    
 | scope |  | varchar(200) | YES |  |  |  |    
index a08cf3153d5563362fdff190e5ba61b8e8f1f655..2c208735a75a66296cffac8c2a5916af69983a2f 100644 (file)
@@ -6,8 +6,8 @@ User specific public contact data
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
 | cid | Contact id of the linked public contact | int unsigned | YES | PRI | 0 |  |    
 | uid | User id | mediumint unsigned | YES | PRI | 0 |  |    
-| blocked | Contact is completely blocked for this user | boolean | NO |  |  |  |    
-| ignored | Posts from this contact are ignored | boolean | NO |  |  |  |    
-| collapsed | Posts from this contact are collapsed | boolean | NO |  |  |  |    
+| blocked | Contact is completely blocked for this user | boolean | NO |  | NULL |  |    
+| ignored | Posts from this contact are ignored | boolean | NO |  | NULL |  |    
+| collapsed | Posts from this contact are collapsed | boolean | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 03c6820ea16101d0f935239c1dbd62353f236a71..8f055b1bc2cbed6f5474ec073eefa02cda583b5a 100644 (file)
@@ -4,8 +4,8 @@ The local users
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| uid | sequential ID | mediumint unsigned | YES | PRI |  | auto_increment |    
-| parent-uid | The parent user that has full control about this user | mediumint unsigned | NO |  |  |  |    
+| uid | sequential ID | mediumint unsigned | YES | PRI | NULL | auto_increment |    
+| parent-uid | The parent user that has full control about this user | mediumint unsigned | NO |  | NULL |  |    
 | guid | A unique identifier for this user | varchar(64) | YES |  |  |  |    
 | username | Name that this user is known by | varchar(255) | YES |  |  |  |    
 | password | encrypted password | varchar(255) | YES |  |  |  |    
@@ -20,10 +20,10 @@ The local users
 | default-location | Default for item.location | varchar(255) | YES |  |  |  |    
 | allow_location | 1 allows to display the location | boolean | YES |  | 0 |  |    
 | theme | user theme preference | varchar(255) | YES |  |  |  |    
-| pubkey | RSA public key 4096 bit | text | NO |  |  |  |    
-| prvkey | RSA private key 4096 bit | text | NO |  |  |  |    
-| spubkey |  | text | NO |  |  |  |    
-| sprvkey |  | text | NO |  |  |  |    
+| pubkey | RSA public key 4096 bit | text | NO |  | NULL |  |    
+| prvkey | RSA private key 4096 bit | text | NO |  | NULL |  |    
+| spubkey |  | text | NO |  | NULL |  |    
+| sprvkey |  | text | NO |  | NULL |  |    
 | verified | user is verified through email | boolean | YES |  | 0 |  |    
 | blocked | 1 for user is blocked | boolean | YES |  | 0 |  |    
 | blockwall | Prohibit contacts to post to the profile page of the user | boolean | YES |  | 0 |  |    
@@ -35,8 +35,8 @@ The local users
 | page-flags | page/profile type | tinyint unsigned | YES |  | 0 |  |    
 | account-type |  | tinyint unsigned | YES |  | 0 |  |    
 | prvnets |  | boolean | YES |  | 0 |  |    
-| pwdreset | Password reset request token | varchar(255) | NO |  |  |  |    
-| pwdreset_time | Timestamp of the last password reset request | datetime | NO |  |  |  |    
+| pwdreset | Password reset request token | varchar(255) | NO |  | NULL |  |    
+| pwdreset_time | Timestamp of the last password reset request | datetime | NO |  | NULL |  |    
 | maxreq |  | int unsigned | YES |  | 10 |  |    
 | expire |  | int unsigned | YES |  | 0 |  |    
 | account_removed | if 1 the account is removed | boolean | YES |  | 0 |  |    
@@ -44,10 +44,10 @@ The local users
 | account_expires_on | timestamp when account expires and will be deleted | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | expire_notification_sent | timestamp of last warning of account expiration | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | def_gid |  | int unsigned | YES |  | 0 |  |    
-| allow_cid | default permission for this user | mediumtext | NO |  |  |  |    
-| allow_gid | default permission for this user | mediumtext | NO |  |  |  |    
-| deny_cid | default permission for this user | mediumtext | NO |  |  |  |    
-| deny_gid | default permission for this user | mediumtext | NO |  |  |  |    
-| openidserver |  | text | NO |  |  |  |    
+| allow_cid | default permission for this user | mediumtext | NO |  | NULL |  |    
+| allow_gid | default permission for this user | mediumtext | NO |  | NULL |  |    
+| deny_cid | default permission for this user | mediumtext | NO |  | NULL |  |    
+| deny_gid | default permission for this user | mediumtext | NO |  | NULL |  |    
+| openidserver |  | text | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 99baabcc66d7aab3f8230476f28caa200f6e99ee..42cc72c3cb2209d14d456e23a61ee3078a36c205 100644 (file)
@@ -4,7 +4,7 @@ Deleted usernames
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | sequential ID | int unsigned | YES | PRI |  | auto_increment |    
-| username |  | varchar(255) | YES |  |  |  |    
+| id | sequential ID | int unsigned | YES | PRI | NULL | auto_increment |    
+| username |  | varchar(255) | YES |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 7e01f1f8e6b8802e292ae2e35b92c49f23513fe6..73871a07caf7773673e7522e78135bdaa16dc67b 100644 (file)
@@ -4,7 +4,7 @@ Activity Verbs
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id |  | smallint unsigned | YES | PRI |  | auto_increment |    
+| id |  | smallint unsigned | YES | PRI | NULL | auto_increment |    
 | name |  | varchar(100) | YES |  |  |  |    
 
 Return to [database documentation](help/database)
index ef8c97301ede59a4e219e47e0da5c26d382a7c5a..5246974f57af8497d93b8c65bf9af8535d07a2da 100644 (file)
@@ -4,7 +4,7 @@ Inter process communication between the frontend and the worker
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| key |  | int | YES | PRI |  |  |    
-| jobs | Flag for outstanding jobs | boolean | NO |  |  |  |    
+| key |  | int | YES | PRI | NULL |  |    
+| jobs | Flag for outstanding jobs | boolean | NO |  | NULL |  |    
 
 Return to [database documentation](help/database)
index 0a14e0aecb635ca7b99c3755c82324b80da611e1..ec10ba5496a83f4d4760fcc16bd51b86d9baa3f9 100644 (file)
@@ -4,9 +4,9 @@ Background tasks queue entries
 
 | Field | Description | Type | Null | Key | Default | Extra |
 | ----- | ----------- | ---- | ---- | --- | ------- | ----- |
-| id | Auto incremented worker task id | int unsigned | YES | PRI |  | auto_increment |    
-| command | Task command | varchar(100) | NO |  |  |  |    
-| parameter | Task parameter | mediumtext | NO |  |  |  |    
+| id | Auto incremented worker task id | int unsigned | YES | PRI | NULL | auto_increment |    
+| command | Task command | varchar(100) | NO |  | NULL |  |    
+| parameter | Task parameter | mediumtext | NO |  | NULL |  |    
 | priority | Task priority | tinyint unsigned | YES |  | 0 |  |    
 | created | Creation date | datetime | YES |  | 0001-01-01 00:00:00 |  |    
 | pid | Process id of the worker | int unsigned | YES |  | 0 |  |    
index d1975f504235148479b018cd6c53ed87b7f683a8..888ac73e67d098c7b9afe5dbda6d05ece291e3dd 100644 (file)
@@ -174,7 +174,7 @@ class DBStructure
                                $field['type']    = $value['type'];
                                $field['notnull'] = ($value['not null'] ?? false) ? 'YES' : 'NO';
                                $field['primary'] = ($value['primary'] ?? false) ? 'PRI' : '';
-                               $field['default'] = $value['default'] ?? '';
+                               $field['default'] = $value['default'] ?? 'NULL';
                                $field['extra']   = $value['extra'] ?? '';
                
                                $fields[] = $field;