From eed1455f52445ff00bdbb4c71427bde58885bb87 Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 8 Oct 2007 23:03:59 +0000 Subject: [PATCH] unique constraints no longer part of auditlog version table --- lib/Doctrine/AuditLog.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/AuditLog.php b/lib/Doctrine/AuditLog.php index 65c21bfc3..2f421df1c 100644 --- a/lib/Doctrine/AuditLog.php +++ b/lib/Doctrine/AuditLog.php @@ -82,10 +82,11 @@ class Doctrine_AuditLog extends Doctrine_Plugin $columns = $table->getColumns(); - // remove all sequential and autoincrement definitions + // remove all sequence, autoincrement and unique constraint definitions foreach ($columns as $column => $definition) { unset($columns[$column]['autoincrement']); unset($columns[$column]['sequence']); + unset($columns[$column]['unique']); } // the version column should be part of the primary key definition