Doctrine Migrations
  1. Doctrine Migrations
  2. DMIG-24

False positives in Comparator on default values

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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?

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Yaroslav Zenin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: