[DC-383] Migrations not respecting ATTR_TBLNAME_FORMAT Created: 23/Dec/09  Updated: 28/May/10

Status: Open
Project: Doctrine 1
Component/s: Attributes, Migrations
Affects Version/s: 1.2.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Karma Dordrak (Drak) Assignee: Jonathan H. Wage
Resolution: Unresolved Votes: 1
Labels: None

Debian 5, Apache 2, PHP 5.2.9, MySQL 5.1

Attachments: Text File migration_table_prefix_doctrine_1.2.patch    


I am using Doctrine 1.2.1 and Migrations don't appear to respect Doctrine::ATTR_TBLNAME_FORMAT when creating or dropping tables. This means while models create/drop tables with prefixes migrations don't. Also the migration_version table is created without the prefix too even though it was apparently fixed in DC-245.

I haven't tested but it also probably means other attributes like Doctrine::ATTR_IDXNAME_FORMAT and Doctrine::ATTR_SEQNAME_FORMAT are not obeyed either which makes things a little confusing knowing when to care for prefixes or not.

Comment by Erik Wegner [ 28/May/10 ]

Simple patch to set the table name inside constructor

Generated at Wed Oct 07 06:21:39 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.