unique constraints no longer part of auditlog version table
This commit is contained in:
parent
fc2b7ba81a
commit
eed1455f52
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user