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

        Hide
        And added a comment -

        private $isActive = 1?

        Show
        And added a comment - private $isActive = 1?
        Hide
        Marco Pivetta added a comment -

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

        Show
        Marco Pivetta added a comment - What are the affected versions for this bug? I think it is a DBAL schema comparator issue.
        Hide
        And added a comment -
        Show
        And added a comment - And yes - related issue: http://www.doctrine-project.org/jira/browse/DDC-2467

          People

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

            Dates

            • Created:
              Updated: