Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-353

doctrine:schema:update doesn't understand it doesn't need to run again

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Schema Managers
    • Security Level: All
    • Labels:
      None

      Description

      doctrine:schema:update keeps thinking there is more to do:

      $ php app/console doctrine:schema:update --dump-sql
      ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;
      ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL
      
      $ php app/console doctrine:schema:update --force   
      Updating database schema...
      Database schema updated successfully! "2" queries were executed
      
      $ php app/console doctrine:schema:update --dump-sql
      ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;
      ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL
      

        Activity

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Mark A. Hershberger
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: