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
--
commits mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]