[DMIG-24] False positives in Comparator on default values Created: 14/Jul/11  Updated: 23/May/13

Status: Open
Project: Doctrine Migrations
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Yaroslav Zenin Assignee: Benjamin Eberlei
Resolution: Unresolved Votes: 0
Labels: None


At the moment I found only one way how to work with default values

 * @var string $isActive
 * @Column(name="isActive", type="boolean", nullable=false)
private $isActive;

and then in the construct I use something like $this->setIsActive(true);
on db level it looks like "isActive BIT default 1"
But the problem happened when I try to compare schemas for migrations. It always false positives on defaults.

How to set defaults for prevent false positives in Comparator?

Comment by And [ 23/May/13 ]

private $isActive = 1?

Comment by Marco Pivetta [ 23/May/13 ]

What are the affected versions for this bug? I think it is a DBAL schema comparator issue.

Comment by And [ 23/May/13 ]

And yes - related issue: http://www.doctrine-project.org/jira/browse/DDC-2467

Generated at Sat Aug 29 14:55:19 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.