Doctrine Project

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Doctrine 2 - ORM
  • Doctrine 2 - ORM
  • DDC-114

Extend Drop Schema

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-ALPHA2
  • Fix Version/s: 2.0-ALPHA3
  • Component/s: Tools
  • Security Level: All
  • Labels:
    None

Description

Currently drop schema infers from the current metadata model which tables have to be dropped.

However when your schema changes and you then want to regenerate the database the tables may have changed and SQL errors like "table does not exist" may occur.

Therefore I propose to extend dropSchema() to have four modes:

  • "metadata" - Drop schema of the current metadata model.
  • "force-metadata" - Drop schema of the current metadata model, even if some tables don't exist.
  • "database" - Drop all tables of a database.
  • "orphans" - Drop all tables that are in the database but not in the metadata model.

Issue Links

is duplicated by

New Feature - A new feature of the product, which has yet to be developed. DDC-99 Add dropOrphanedTables() command to SchemaTool

  • Major - Major loss of function.
  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.

Activity

  • All
  • Comments
  • History
  • Activity
  • Source

People

  • Assignee:
    Benjamin Eberlei
    Reporter:
    Benjamin Eberlei
Vote (1)
Watch (0)

Dates

  • Created:
    04/Nov/09 5:27 PM
    Updated:
    05/Nov/09 8:51 AM
    Resolved:
    05/Nov/09 8:51 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Doctrine Project. Try JIRA - bug tracking software for your team.