1
0

database.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <database>
  3. <name>*dbname*</name>
  4. <create>true</create>
  5. <overwrite>false</overwrite>
  6. <charset>utf8</charset>
  7. <table>
  8. <name>*dbprefix*trusted_servers</name>
  9. <declaration>
  10. <field>
  11. <name>id</name>
  12. <type>integer</type>
  13. <default>0</default>
  14. <notnull>true</notnull>
  15. <autoincrement>1</autoincrement>
  16. <length>4</length>
  17. </field>
  18. <field>
  19. <name>url</name>
  20. <type>text</type>
  21. <notnull>true</notnull>
  22. <length>512</length>
  23. <comments>Url of trusted server</comments>
  24. </field>
  25. <field>
  26. <name>url_hash</name>
  27. <type>text</type>
  28. <default></default>
  29. <notnull>true</notnull>
  30. <comments>sha1 hash of the url without the protocol</comments>
  31. </field>
  32. <field>
  33. <name>token</name>
  34. <type>text</type>
  35. <length>128</length>
  36. <comments>token used to exchange the shared secret</comments>
  37. </field>
  38. <field>
  39. <name>shared_secret</name>
  40. <type>text</type>
  41. <length>256</length>
  42. <comments>shared secret used to authenticate</comments>
  43. </field>
  44. <field>
  45. <name>status</name>
  46. <type>integer</type>
  47. <length>4</length>
  48. <notnull>true</notnull>
  49. <default>2</default>
  50. <comments>current status of the connection</comments>
  51. </field>
  52. <field>
  53. <name>sync_token</name>
  54. <type>text</type>
  55. <length>512</length>
  56. <comments>cardDav sync token</comments>
  57. </field>
  58. <index>
  59. <name>url_hash</name>
  60. <unique>true</unique>
  61. <field>
  62. <name>url_hash</name>
  63. <sorting>ascending</sorting>
  64. </field>
  65. </index>
  66. </declaration>
  67. </table>
  68. </database>