[DC-867] Doctrine::ATTR_IDXNAME_FORMAT and Doctrine::ATTR_FKNAME_FORMAT are inconsistently applied during migrations Created: 15/Sep/10  Updated: 07/Sep/11

Status: Open
Project: Doctrine 1
Component/s: Migrations
Affects Version/s: 1.2.3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Ryan Lepidi Assignee: Jonathan H. Wage
Resolution: Unresolved Votes: 1
Labels: None

postgres 8.4


Given the following code:

    public function up()
        $idx = array(
            'fields' => array('profile_id')

        $this->addIndex('schedules', 'ix_schedules_profile_id', $idx);
    public function down()
        $this->removeIndex('schedules', 'ix_schedules_profile_id');

The "up" function will try to create "ix_schedules_profile_id", but the "down" function will try to remove "ix_schedules_profile_id_idx". The same problem exists with foreign keys. The add/remove functions should both use the formatter, or neither should.

Comment by John Kary [ 07/Sep/11 ]

Appears to be duplicate of DC-830

Generated at Wed Nov 25 09:32:39 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.