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

        Yaroslav Zenin created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Assignee Jonathan H. Wage [ jwage ] Benjamin Eberlei [ beberlei ]
        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

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DMIG-24, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: