Fixed docs comparsion
This commit is contained in:
parent
febc81ce3d
commit
34dd934a5c
2 changed files with 3 additions and 2 deletions
|
@ -90,7 +90,8 @@ abstract class Migration
|
||||||
if (empty($new->getId())) {
|
if (empty($new->getId())) {
|
||||||
throw new Exception('Missing ID');
|
throw new Exception('Missing ID');
|
||||||
}
|
}
|
||||||
if (!array_diff($new->getArrayCopy(), $old)) {
|
|
||||||
|
if (!array_diff_assoc($new->getArrayCopy(), $old)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class V06 extends Migration
|
||||||
{
|
{
|
||||||
switch ($document->getAttribute('$collection')) {
|
switch ($document->getAttribute('$collection')) {
|
||||||
case Database::SYSTEM_COLLECTION_USERS:
|
case Database::SYSTEM_COLLECTION_USERS:
|
||||||
if ($document->getAttribute('password-update', null)) {
|
if ($document->isSet('password-update')) {
|
||||||
$document
|
$document
|
||||||
->setAttribute('passwordUpdate', $document->getAttribute('password-update', $document->getAttribute('passwordUpdate', '')))
|
->setAttribute('passwordUpdate', $document->getAttribute('password-update', $document->getAttribute('passwordUpdate', '')))
|
||||||
->removeAttribute('password-update');
|
->removeAttribute('password-update');
|
||||||
|
|
Loading…
Reference in a new issue