Formatted index list

This commit is contained in:
Michael 2021-06-14 12:15:10 +00:00
parent 3d74d0a49c
commit 7106106f11
73 changed files with 375 additions and 360 deletions

View file

@ -18,9 +18,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| --------------- | --------------------- |
| PRIMARY | id |
| uid_description | uid, description(190) |
Foreign Keys

View file

@ -16,8 +16,8 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | --------- |
| PRIMARY | uid, code |
Foreign Keys

View file

@ -17,10 +17,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ----------- |
| PRIMARY | cookie_hash |
| uid | uid |
| uid | uid |
Foreign Keys
------------

View file

@ -19,11 +19,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| -------------- | --------------- |
| PRIMARY | id |
| installed_name | installed, name |
| name | UNIQUE, name |
| name | UNIQUE, name |
Return to [database documentation](help/database)

View file

@ -36,15 +36,15 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | url |
| addr | addr(32) |
| alias | alias(190) |
| followers | followers(190) |
| baseurl | baseurl(190) |
| Name | Fields |
| ----------- | ---------------- |
| PRIMARY | url |
| addr | addr(32) |
| alias | alias(190) |
| followers | followers(190) |
| baseurl | baseurl(190) |
| sharedinbox | sharedinbox(190) |
| gsid | gsid |
| gsid | gsid |
Foreign Keys
------------

View file

@ -22,10 +22,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ------------------- |
| PRIMARY | application-id, uid |
| uid_id | uid, application-id |
| uid_id | uid, application-id |
Foreign Keys
------------

View file

@ -23,9 +23,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| --------- | ----------------- |
| PRIMARY | id |
| client_id | UNIQUE, client_id |

View file

@ -27,10 +27,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------

View file

@ -17,9 +17,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| --------- | --------- |
| PRIMARY | id |
| client_id | client_id |
Foreign Keys

View file

@ -16,9 +16,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | k |
| Name | Fields |
| --------- | ---------- |
| PRIMARY | k |
| k_expires | k, expires |

View file

@ -18,10 +18,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| expire | expire |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| expire | expire |
Return to [database documentation](help/database)

View file

@ -18,10 +18,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | --------- |
| PRIMARY | client_id |
| uid | uid |
| uid | uid |
Foreign Keys
------------

View file

@ -16,10 +16,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| cat_k | UNIQUE, cat, k |
| Name | Fields |
| ------- | -------------- |
| PRIMARY | id |
| cat_k | UNIQUE, cat, k |
Return to [database documentation](help/database)

View file

@ -17,10 +17,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | cid, relation-cid |
| relation-cid | relation-cid |
| Name | Fields |
| ------------ | ----------------- |
| PRIMARY | cid, relation-cid |
| relation-cid | relation-cid |
Foreign Keys
------------

View file

@ -92,31 +92,31 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid_name | uid, name(190) |
| self_uid | self, uid |
| alias_uid | alias(128), uid |
| pending_uid | pending, uid |
| blocked_uid | blocked, uid |
| uid_rel_network_poll | uid, rel, network, poll(64), archive |
| uid_network_batch | uid, network, batch(64) |
| batch_contact-type | batch(64), contact-type |
| addr_uid | addr(128), uid |
| nurl_uid | nurl(128), uid |
| nick_uid | nick(128), uid |
| attag_uid | attag(96), uid |
| dfrn-id | dfrn-id(64) |
| issued-id | issued-id(64) |
| network_uid_lastupdate | network, uid, last-update |
| uid_network_self_lastupdate | uid, network, self, last-update |
| uid_lastitem | uid, last-item |
| baseurl | baseurl(64) |
| uid_contact-type | uid, contact-type |
| uid_self_contact-type | uid, self, contact-type |
| self_network_uid | self, network, uid |
| gsid | gsid |
| Name | Fields |
| --------------------------- | ------------------------------------ |
| PRIMARY | id |
| uid_name | uid, name(190) |
| self_uid | self, uid |
| alias_uid | alias(128), uid |
| pending_uid | pending, uid |
| blocked_uid | blocked, uid |
| uid_rel_network_poll | uid, rel, network, poll(64), archive |
| uid_network_batch | uid, network, batch(64) |
| batch_contact-type | batch(64), contact-type |
| addr_uid | addr(128), uid |
| nurl_uid | nurl(128), uid |
| nick_uid | nick(128), uid |
| attag_uid | attag(96), uid |
| dfrn-id | dfrn-id(64) |
| issued-id | issued-id(64) |
| network_uid_lastupdate | network, uid, last-update |
| uid_network_self_lastupdate | uid, network, self, last-update |
| uid_lastitem | uid, last-item |
| baseurl | baseurl(64) |
| uid_contact-type | uid, contact-type |
| uid_self_contact-type | uid, self, contact-type |
| self_network_uid | self, network, uid |
| gsid | gsid |
Foreign Keys
------------

View file

@ -20,10 +20,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------

View file

@ -20,11 +20,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | item-uri |
| Name | Fields |
| ---------------- | ---------------- |
| PRIMARY | item-uri |
| conversation-uri | conversation-uri |
| received | received |
| received | received |
Return to [database documentation](help/database)

View file

@ -16,9 +16,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ------- | --------------------- |
| PRIMARY | id |
| uid_uri | UNIQUE, uid, uri(190) |
Foreign Keys

View file

@ -14,8 +14,8 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ------ |
| PRIMARY | uri-id |
Foreign Keys

View file

@ -32,11 +32,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| --------- | ---------- |
| PRIMARY | id |
| uid_start | uid, start |
| cid | cid |
| cid | cid |
Foreign Keys
------------

View file

@ -29,11 +29,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| addr | addr(32) |
| url | UNIQUE, url(190) |
| Name | Fields |
| ------- | ---------------- |
| PRIMARY | id |
| addr | addr(32) |
| url | UNIQUE, url(190) |
Return to [database documentation](help/database)

View file

@ -21,11 +21,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| cid | cid |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| cid | cid |
| uid | uid |
Foreign Keys
------------

View file

@ -17,10 +17,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------

View file

@ -15,10 +15,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| contactid | contact-id |
| Name | Fields |
| ------------- | ----------------------- |
| PRIMARY | id |
| contactid | contact-id |
| gid_contactid | UNIQUE, gid, contact-id |
Foreign Keys

View file

@ -14,10 +14,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | --------------- |
| PRIMARY | gserver-id, tag |
| tag | tag |
| tag | tag |
Foreign Keys
------------

View file

@ -35,12 +35,12 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| nurl | UNIQUE, nurl(190) |
| next_contact | next_contact |
| network | network |
| Name | Fields |
| ------------ | ----------------- |
| PRIMARY | id |
| nurl | UNIQUE, nurl(190) |
| next_contact | next_contact |
| network | network |
Return to [database documentation](help/database)

View file

@ -17,10 +17,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| priority | priority |
| Name | Fields |
| ------------------ | ---------------------------- |
| PRIMARY | id |
| priority | priority |
| hook_file_function | UNIQUE, hook, file, function |

View file

@ -14,10 +14,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| name | UNIQUE, name |
| Name | Fields |
| ------- | ------------ |
| PRIMARY | id |
| name | UNIQUE, name |
Return to [database documentation](help/database)

View file

@ -19,9 +19,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | url |
| Name | Fields |
| ------- | ------ |
| PRIMARY | url |
Return to [database documentation](help/database)

View file

@ -23,11 +23,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ---------- | ---------- |
| PRIMARY | id |
| contact-id | contact-id |
| uid | uid |
| uid | uid |
Foreign Keys
------------

View file

@ -15,11 +15,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uri | UNIQUE, uri |
| guid | guid |
| Name | Fields |
| ------- | ----------- |
| PRIMARY | id |
| uri | UNIQUE, uri |
| guid | guid |
Return to [database documentation](help/database)

View file

@ -17,9 +17,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ------------ | ------------- |
| PRIMARY | id |
| name_expires | name, expires |

View file

@ -34,18 +34,18 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid_seen | uid, seen |
| convid | convid |
| uri | uri(64) |
| parent-uri | parent-uri(64) |
| contactid | contact-id(32) |
| author-id | author-id |
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
| thr-parent-id | thr-parent-id |
| Name | Fields |
| ------------- | -------------- |
| PRIMARY | id |
| uid_seen | uid, seen |
| convid | convid |
| uri | uri(64) |
| parent-uri | parent-uri(64) |
| contactid | contact-id(32) |
| author-id | author-id |
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
| thr-parent-id | thr-parent-id |
Foreign Keys
------------

View file

@ -25,10 +25,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------

View file

@ -15,11 +15,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ------- | ---------------- |
| PRIMARY | id |
| uid_mid | UNIQUE, uid, mid |
| mid | mid |
| mid | mid |
Foreign Keys
------------

View file

@ -21,15 +21,15 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ----------------------------------- | ----------------------------------------------- |
| PRIMARY | id |
| uid_vid_type_actor-id_target-uri-id | UNIQUE, uid, vid, type, actor-id, target-uri-id |
| vid | vid |
| actor-id | actor-id |
| target-uri-id | target-uri-id |
| parent-uri-id | parent-uri-id |
| seen_uid | seen, uid |
| vid | vid |
| actor-id | actor-id |
| target-uri-id | target-uri-id |
| parent-uri-id | parent-uri-id |
| seen_uid | seen, uid |
Foreign Keys
------------

View file

@ -18,12 +18,12 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| -------------------- | -------------------- |
| PRIMARY | id |
| master-parent-uri-id | master-parent-uri-id |
| receiver-uid | receiver-uid |
| notify-id | notify-id |
| receiver-uid | receiver-uid |
| notify-id | notify-id |
Foreign Keys
------------

View file

@ -30,14 +30,14 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| seen_uid_date | seen, uid, date |
| uid_date | uid, date |
| Name | Fields |
| ------------- | -------------------- |
| PRIMARY | id |
| seen_uid_date | seen, uid, date |
| uid_date | uid, date |
| uid_type_link | uid, type, link(190) |
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
Foreign Keys
------------

View file

@ -16,10 +16,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ------------- |
| PRIMARY | url, maxwidth |
| created | created |
| created | created |
Return to [database documentation](help/database)

View file

@ -18,10 +18,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------

View file

@ -19,11 +19,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | -------------------------- |
| PRIMARY | url_hash, guessing, oembed |
| created | created |
| expires | expires |
| created | created |
| expires | expires |
Return to [database documentation](help/database)

View file

@ -17,9 +17,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| --------- | ------------------- |
| PRIMARY | id |
| uid_cat_k | UNIQUE, uid, cat, k |
Foreign Keys

View file

@ -18,9 +18,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ----------------------------------------- | ------------------------------------------------------------- |
| PRIMARY | id |
| uid_allow_cid_allow_gid_deny_cid_deny_gid | uid, allow_cid(50), allow_gid(30), deny_cid(50), deny_gid(30) |
Foreign Keys

View file

@ -39,15 +39,15 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| contactid | contact-id |
| uid_contactid | uid, contact-id |
| uid_profile | uid, profile |
| uid_album_scale_created | uid, album(32), scale, created |
| Name | Fields |
| ----------------------------- | ------------------------------------ |
| PRIMARY | id |
| contactid | contact-id |
| uid_contactid | uid, contact-id |
| uid_profile | uid, profile |
| uid_album_scale_created | uid, album(32), scale, created |
| uid_album_resource-id_created | uid, album(32), resource-id, created |
| resource-id | resource-id |
| resource-id | resource-id |
Foreign Keys
------------

View file

@ -16,11 +16,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ---------------------- |
| PRIMARY | uri-id, uid, type, tid |
| uri-id | tid |
| uid | uid |
| uri-id | tid |
| uid | uid |
Foreign Keys
------------

View file

@ -29,11 +29,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | uri-id |
| plink | plink(191) |
| resource-id | resource-id |
| Name | Fields |
| -------------------------- | -------------------------------------- |
| PRIMARY | uri-id |
| plink | plink(191) |
| resource-id | resource-id |
| title-content-warning-body | FULLTEXT, title, content-warning, body |
Foreign Keys

View file

@ -23,8 +23,8 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ------ |
| PRIMARY | uri-id |
Foreign Keys

View file

@ -31,9 +31,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ---------- | ------------------- |
| PRIMARY | id |
| uri-id-url | UNIQUE, uri-id, url |
Foreign Keys

View file

@ -16,11 +16,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ---------------------- |
| PRIMARY | uri-id, type, tid, cid |
| tid | tid |
| cid | cid |
| tid | tid |
| cid | cid |
Foreign Keys
------------

View file

@ -35,23 +35,23 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | uid, uri-id |
| uri-id | uri-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| uid | uid |
| contact-id | contact-id |
| psid | psid |
| post-user-id | post-user-id |
| commented | commented |
| uid_received | uid, received |
| uid_pinned | uid, pinned |
| Name | Fields |
| ------------- | -------------- |
| PRIMARY | uid, uri-id |
| uri-id | uri-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| uid | uid |
| contact-id | contact-id |
| psid | psid |
| post-user-id | post-user-id |
| commented | commented |
| uid_received | uid, received |
| uid_pinned | uid, pinned |
| uid_commented | uid, commented |
| uid_starred | uid, starred |
| uid_mention | uid, mention |
| uid_starred | uid, starred |
| uid_mention | uid, mention |
Foreign Keys
------------

View file

@ -21,13 +21,13 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | uri-id |
| owner-id | owner-id |
| Name | Fields |
| --------- | --------- |
| PRIMARY | uri-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| received | received |
| received | received |
| commented | commented |
Foreign Keys

View file

@ -15,10 +15,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | ----------- |
| PRIMARY | uid, uri-id |
| uri-id | uri-id |
| uri-id | uri-id |
Foreign Keys
------------

View file

@ -42,28 +42,28 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid_uri-id | UNIQUE, uid, uri-id |
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
| thr-parent-id | thr-parent-id |
| external-id | external-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| vid | vid |
| contact-id | contact-id |
| event-id | event-id |
| psid | psid |
| author-id_uid | author-id, uid |
| author-id_received | author-id, received |
| parent-uri-id_uid | parent-uri-id, uid |
| uid_contactid | uid, contact-id |
| Name | Fields |
| -------------------- | ----------------------- |
| PRIMARY | id |
| uid_uri-id | UNIQUE, uid, uri-id |
| uri-id | uri-id |
| parent-uri-id | parent-uri-id |
| thr-parent-id | thr-parent-id |
| external-id | external-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| vid | vid |
| contact-id | contact-id |
| event-id | event-id |
| psid | psid |
| author-id_uid | author-id, uid |
| author-id_received | author-id, received |
| parent-uri-id_uid | parent-uri-id, uid |
| uid_contactid | uid, contact-id |
| uid_unseen_contactid | uid, unseen, contact-id |
| uid_unseen | uid, unseen |
| uid_hidden_uri-id | uid, hidden, uri-id |
| uid_unseen | uid, unseen |
| uid_hidden_uri-id | uid, hidden, uri-id |
Foreign Keys
------------

View file

@ -30,16 +30,16 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | uri-id |
| Name | Fields |
| ------------- | ------------- |
| PRIMARY | uri-id |
| parent-uri-id | parent-uri-id |
| thr-parent-id | thr-parent-id |
| external-id | external-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| vid | vid |
| external-id | external-id |
| owner-id | owner-id |
| author-id | author-id |
| causer-id | causer-id |
| vid | vid |
Foreign Keys
------------

View file

@ -15,9 +15,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | pid |
| Name | Fields |
| ------- | ------- |
| PRIMARY | pid |
| command | command |

View file

@ -54,11 +54,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid_is-default | uid, is-default |
| pub_keywords | FULLTEXT, pub_keywords |
| Name | Fields |
| -------------- | ---------------------- |
| PRIMARY | id |
| uid_is-default | uid, is-default |
| pub_keywords | FULLTEXT, pub_keywords |
Foreign Keys
------------

View file

@ -18,11 +18,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| cid | cid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
| cid | cid |
Foreign Keys
------------

View file

@ -20,12 +20,12 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| order | order |
| psid | psid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
| order | order |
| psid | psid |
Foreign Keys
------------

View file

@ -22,11 +22,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| -------- | -------- |
| PRIMARY | id |
| next_try | next_try |
| uid | uid |
| uid | uid |
Foreign Keys
------------

View file

@ -19,10 +19,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| uid | uid |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| uid | uid |
Foreign Keys
------------

View file

@ -15,11 +15,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| -------- | ------------- |
| PRIMARY | id |
| uid_term | uid, term(64) |
| term | term(64) |
| term | term(64) |
Foreign Keys
------------

View file

@ -16,11 +16,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| sid | sid(64) |
| expire | expire |
| Name | Fields |
| ------- | ------- |
| PRIMARY | id |
| sid | sid(64) |
| expire | expire |
Return to [database documentation](help/database)

View file

@ -14,9 +14,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
Return to [database documentation](help/database)

View file

@ -15,11 +15,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| ------------- | ----------------- |
| PRIMARY | id |
| type_name_url | UNIQUE, name, url |
| url | url |
| url | url |
Return to [database documentation](help/database)

View file

@ -18,11 +18,11 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| --------- | --------- |
| PRIMARY | id |
| client_id | client_id |
| uid | uid |
| uid | uid |
Foreign Keys
------------

View file

@ -17,10 +17,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| Name | Fields |
| ------- | -------- |
| PRIMARY | uid, cid |
| cid | cid |
| cid | cid |
Foreign Keys
------------

View file

@ -57,13 +57,13 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | uid |
| nickname | nickname(32) |
| parent-uid | parent-uid |
| guid | guid |
| email | email(64) |
| Name | Fields |
| ---------- | ------------ |
| PRIMARY | uid |
| nickname | nickname(32) |
| parent-uid | parent-uid |
| guid | guid |
| email | email(64) |
Foreign Keys
------------

View file

@ -14,9 +14,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| Name | Fields |
| -------- | ------------ |
| PRIMARY | id |
| username | username(32) |

View file

@ -14,10 +14,10 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| name | name |
| Name | Fields |
| ------- | ------ |
| PRIMARY | id |
| name | name |
Return to [database documentation](help/database)

View file

@ -14,9 +14,9 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | key |
| Name | Fields |
| ------- | ------ |
| PRIMARY | key |
Return to [database documentation](help/database)

View file

@ -22,17 +22,17 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
| PRIMARY | id |
| command | command |
| done_command_parameter | done, command, parameter(64) |
| done_executed | done, executed |
| Name | Fields |
| ----------------------------- | -------------------------------- |
| PRIMARY | id |
| command | command |
| done_command_parameter | done, command, parameter(64) |
| done_executed | done, executed |
| done_priority_retrial_created | done, priority, retrial, created |
| done_priority_next_try | done, priority, next_try |
| done_pid_next_try | done, pid, next_try |
| done_pid_retrial | done, pid, retrial |
| done_pid_priority_created | done, pid, priority, created |
| done_priority_next_try | done, priority, next_try |
| done_pid_next_try | done, pid, next_try |
| done_pid_retrial | done, pid, retrial |
| done_pid_priority_created | done, pid, priority, created |
Return to [database documentation](help/database)

View file

@ -166,11 +166,28 @@ class DBStructure
$tables = [];
foreach (self::definition(null) as $name => $definition) {
$indexes = [];
$indexes = [[
'name' => 'Name',
'fields' => 'Fields',
],
[
'name' => '-',
'fields' => '-',
]];
$lengths = ['name' => 4, 'fields' => 6];
foreach ($definition['indexes'] as $key => $value) {
$indexes[] = ['name' => $key, 'fields' => implode(', ', $value)];
$fieldlist = implode(', ', $value);
$indexes[] = ['name' => $key, 'fields' => $fieldlist];
$lengths['name'] = max($lengths['name'], strlen($key));
$lengths['fields'] = max($lengths['fields'], strlen($fieldlist));
}
array_walk_recursive($indexes, function(&$value, $key) use ($lengths)
{
$value = str_pad($value, $lengths[$key], $value === '-' ? '-' : ' ');
});
$foreign = [];
$fields = [[
'name' => 'Field',

View file

@ -13,8 +13,6 @@ Fields
Indexes
------------
| Name | Fields |
|------|--------|
{{foreach $indexes as $index}}
| {{$index.name}} | {{$index.fields}} |
{{/foreach}}