PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB2_Schema » Bug #5976

"create" tag. Why?

Details

Request #5976"create" tag. Why?
Submitted2005-11-16 03:08 UTC
Fromrichtl at arscognita dot com
StatusBogus
PackageMDB2_Schema
PHP Version5.1.0
OSlinux
Roadmaps(Not assigned)

Comments

[2005-11-16 03:08 UTC] richtl at arscognita dot com

Description:
------------
What is the rationale behind the <create> tag in the schema? It seems unnecessary.

If you're applying a schema to a database that doesn't yet exist, the DB should be created. If you're applying a schema to a database that does exist, it should be upgraded. Why is it necessary for the schema definition (xml file)--rather than the application logic--to know whether it's being applied as an insert or an upgrade?

[2005-11-16 03:26 UTC] richtl at arscognita dot com

Wrong bug summary name!