I use Doctrine 2.2.3 and Symfony 2.0.12, I have problem with Doctrine, when I launch doctrine:schema:update it produces the same set of queries again and again, like this:
ALTER TABLE Testimonial CHANGE frontPage frontPage TINYINT(1) NOT NULL;
ALTER TABLE Slider CHANGE active active TINYINT(1) DEFAULT NULL;
ALTER TABLE LPSlider CHANGE active active TINYINT(1) DEFAULT NULL;
ALTER TABLE CustomerDesign CHANGE requestProof requestProof TINYINT(1) DEFAULT NULL, CHANGE isBlank isBlank TINYINT(1) DEFAULT NULL, CHANGE hidden hidden TINYINT(1) DEFAULT NULL;
ALTER TABLE SessionDesign CHANGE requestProof requestProof TINYINT(1) DEFAULT NULL, CHANGE isBlank isBlank TINYINT(1) DEFAULT NULL;
And much more, as you see this is only "TINYINT(1) DEFAULT NULL" changes, if I run command with --force, it's updating schema successfully:
Database schema updated successfully! "30" queries were executed
But if I run again doctrine:schema:update --dump-sql it shows the same queries, I checked database, all this fields already "TINYINT(1) DEFAULT NULL".
I use PHP Entities annotation, example:
/**
* @var boolean $frontPage
*
* @ORM\Column(name="frontPage", type="boolean")
*/
private $frontPage;
I can't update Doctrine to v2.3 or bigger, it doesn't work with my Symfony version, updating Symfony may be real pain as this is really huge project.
UPDATE:
I managed to upgrade application to latest version of Symfony 2.7.5 and Doctrine 2.5.1 and still have the same issue, tried to create new database with doctrine:schema:create, but doctrine:schema:update again shows the same "TINYINT(1) NOT NULL" changes.