Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2450

Exception throwen when use --dump-sql

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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
        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
        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
        Konstantin added a comment -

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

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

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: