Development

#2799 (the sfPropelActAsTaggableBehaviorPlugin use 'tag' as indexe name and as table name)

You must first sign up to be able to contribute.

Ticket #2799 (closed defect: fixed)

Opened 8 months ago

Last modified 5 months ago

the sfPropelActAsTaggableBehaviorPlugin use 'tag' as indexe name and as table name

Reported by: caeies Assigned to: xavier
Priority: minor Milestone:
Component: sfPropelActAsTaggablePlugin Version: 1.0.10
Keywords: Cc: caeies@caeies.org
Qualification: Accepted

Description

Hi all,

In the schema.yml of this plugin, there's :

propel:
  _attributes:    { package: plugins.sfPropelActAsTaggableBehaviorPlugin.lib.model }

  tag:
    _attributes:      { phpName: Tag, package: 
[...]
  tagging:
[...]
    _indexes:
      tag:            [tag_id]
      taggable:       [taggable_model, taggable_id]

But, at least for pgsql, having an index which have the same name than a table is not an option. In that case, the creation of index failed and you can hit performance impact ...

Proposed solution : change the tag table name to match sf coding standard, so the conflict disapear :).

Regards

Caeies

Change History

03/21/08 13:38:35 changed by xavier

  • status changed from new to closed.
  • resolution set to fixed.
  • qualification changed from Unreviewed to Accepted.

fixed in [8025]