Uploaded image for project: 'Doctrine 2 - ORM'
  1. Doctrine 2 - ORM
  2. DDC-2450

Exception throwen when use --dump-sql

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Can't Fix
    • Affects Version/s: 2.3.4
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None
    • Environment:
      symfony 2.3-dev

      Description

      php app/console doctrine:schema:update --dump-sql > a.sql
      
      
      
        [Doctrine\DBAL\Schema\SchemaException]
        The table with name 'xxx.message76' already exists.
      
      
      
      doctrine:schema:update [--complete] [--dump-sql] [--force] [--em[="..."]]
      

        Activity

        Hide
        ocramius Marco Pivetta added a comment -

        The DBAL can only extract schema definitions from the current DB, so it won't know if there are tables in other databases that are already existing

        Show
        ocramius Marco Pivetta added a comment - The DBAL can only extract schema definitions from the current DB, so it won't know if there are tables in other databases that are already existing
        Hide
        koc Konstantin added a comment -

        I haven't this exception week ago. What I'd changed? How can I fix it?

        Show
        koc Konstantin added a comment - I haven't this exception week ago. What I'd changed? How can I fix it?
        Hide
        ocramius Marco Pivetta added a comment -

        Konstantin what platform are you currently on? Can you provide the mappings to reproduce the problem?

        Show
        ocramius Marco Pivetta added a comment - Konstantin what platform are you currently on? Can you provide the mappings to reproduce the problem?

          People

          • Assignee:
            ocramius Marco Pivetta
            Reporter:
            koc Konstantin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: