Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1172

Schema tool does not drop sequences on table drop for PostgreSql platform

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.1
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None
    • Environment:
      PostgreSql 8.4

      Description

      When recreating database using

      $schemaTool->dropSchema($metaDatas);
      $schemaTool->createSchema($metaDatas);

      the second line fails with error that the sequence "tbl_id_seq" already exists. It's because the sequence is created without an owner column and schema tool doesn't include "drop sequence" statements in the drop SQL.

      I've created a patch which fixes the problem for my environment. Revision numbers in patch is from the local SVN. Doctrine base is 2.0.5.

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Aigars Gedroics
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: