[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


 Description   

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?



 Comments   
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 Thu Aug 21 16:03:37 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.