[commits] [Wiki] changed: Doc/Dev/HordeDb

Wiki Guest wikiguest at horde.org
Thu May 7 09:11:51 UTC 2020


guest [89.12.183.15]  Thu, 07 May 2020 09:11:51 +0000

Modified page: https://wiki.horde.org/Doc/Dev/HordeDb
New Revision:  3
Change log:  Transferred the part about unique keys to the right section

@@ -66,19 +66,18 @@
  if (!$this->hasIndex('my_table', array('my_column', 'my_column2'))) {
      $this->addIndex('my_table', array('my_column', 'my_column2'));
  }
  </code>
+
++++ Adding a unique key / unique index

  It's also possible to add unique keys or a self defined names via  
the options:
-
+
  <code>
  if (!$this->hasIndex('my_table', 'my_column')) {
      $this->addIndex('my_table', 'my_column', array('unique' => true));
  }
  </code>
-
-
-+++ Adding a unique key / unique index

  +++ Converting for Non-Horde or Pre-H4 schemas

  Check for all table's existence before adding them



More information about the commits mailing list