1
0
mirror of synced 2025-01-19 06:51:40 +03:00

unique constraints no longer part of auditlog version table

This commit is contained in:
zYne 2007-10-08 23:03:59 +00:00
parent fc2b7ba81a
commit eed1455f52

View File

@ -82,10 +82,11 @@ class Doctrine_AuditLog extends Doctrine_Plugin
$columns = $table->getColumns(); $columns = $table->getColumns();
// remove all sequential and autoincrement definitions // remove all sequence, autoincrement and unique constraint definitions
foreach ($columns as $column => $definition) { foreach ($columns as $column => $definition) {
unset($columns[$column]['autoincrement']); unset($columns[$column]['autoincrement']);
unset($columns[$column]['sequence']); unset($columns[$column]['sequence']);
unset($columns[$column]['unique']);
} }
// the version column should be part of the primary key definition // the version column should be part of the primary key definition