Development

#1447 (propel-build-schema error, when plugin with database tables exist)

You must first sign up to be able to contribute.

Ticket #1447 (new defect)

Opened 6 years ago

Last modified 4 years ago

propel-build-schema error, when plugin with database tables exist

Reported by: qube Assigned to: fabien
Priority: major Milestone:
Component: plugins Version: 1.0.0-rc1
Keywords: Cc:
Qualification: Unreviewed

Description

This error affect Symfony installation with plugin with database tables.

When plugin is installed (tables for plugin created in db) and user run

symfony propel-build-schema
symfony propel-build-model

following error occurs

C:\php51\PEAR\symfony\vendor\propel-generator\build-propel.xml:436:1: 
Duplicate table found: propel

This is caused by duplicated table definition. Once in /config/schema.yml and once in /plugins/PLUGIN_NAME/config/schema.yml.

The solution can be to modify propel-build-schema or propel-build-model task to ignore tables defined in plugins.

Associated forum topic is here: http://www.symfony-project.com/forum/index.php/t/4990/

Change History

02/18/07 10:58:39 changed by fabien

  • milestone set to post-1.0.

02/21/07 14:59:20 changed by francois

  • owner set to fabien.
  • component set to routing.

02/21/07 14:59:33 changed by francois

  • component changed from routing to plugins.

05/10/08 22:41:27 changed by fabien

  • qualification set to Unreviewed.
  • milestone deleted.

07/30/09 17:43:38 changed by itrebal

Maybe this should automatically notify the user that a plugin is conflicting? That would simplify everything a great deal.