]> git.mxchange.org Git - friendica.git/blobdiff - doc/database/db_hook.md
Merge pull request #10797 from annando/diaspora-deprecated
[friendica.git] / doc / database / db_hook.md
index c25f674cc9ae9c3b50f5b0c5b8de89e81eac8838..0ad0981f0cf52c06b6d1258a17f3bb41a9eec0a4 100644 (file)
@@ -3,6 +3,9 @@ Table hook
 
 addon hook registry
 
+Fields
+------
+
 | Field    | Description                                                                                                | Type              | Null | Key | Default | Extra          |
 | -------- | ---------------------------------------------------------------------------------------------------------- | ----------------- | ---- | --- | ------- | -------------- |
 | id       | sequential ID                                                                                              | int unsigned      | NO   | PRI | NULL    | auto_increment |
@@ -11,4 +14,14 @@ addon hook registry
 | function | function name of hook handler                                                                              | varbinary(200)    | NO   |     |         |                |
 | priority | not yet implemented - can be used to sort conflicts in hook handling by calling handlers in priority order | smallint unsigned | NO   |     | 0       |                |
 
+Indexes
+------------
+
+| Name               | Fields                       |
+| ------------------ | ---------------------------- |
+| PRIMARY            | id                           |
+| priority           | priority                     |
+| hook_file_function | UNIQUE, hook, file, function |
+
+
 Return to [database documentation](help/database)