Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Hi there,

      Migrations with MSSQL

      protected $myfield = false;

      DIFF ->

      $this->addSql("ALTER TABLE dec_user ADD complete_render BIT NOT NULL");


      DEFAULT 0 is missing here


      according to stof

      The generated statements are coming from the DBAL schema comparator, comparing the DB schema to the schema expected by the ORM.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Doctrine only generates default clauses if you use:

        @Column(options={"default": "0"})
        

        Not by looking at the default value of a field.

        Show
        Benjamin Eberlei added a comment - Doctrine only generates default clauses if you use: @Column(options={ " default " : "0" }) Not by looking at the default value of a field.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: