Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate-schema problem with indexes names #464

Closed
cbichis opened this issue Jan 4, 2015 · 1 comment
Closed

Validate-schema problem with indexes names #464

cbichis opened this issue Jan 4, 2015 · 1 comment

Comments

@cbichis
Copy link

cbichis commented Jan 4, 2015

Hello,

I am using dev-master version,

The validate-schema keeps reporting:
[Database] FAIL - The database schema is not in sync with the current mapping file.

And the orm:schema-tool:update --dump-sql

is requesting me to add an index with an obfuscated name: CREATE INDEX IDX_D7943D682D5B0234 ON area (city);

But I already have a proper index with the name: city.

If I change the index name to IDX_D7943D682D5B0234 the schema tool is asking me to have a index city: CREATE INDEX city ON area (city);

So to be all green I am forced to add two indexes for the same field, one with the name = field name and the other one with the name as the schema tool is suggesting me. This is happening for all my fields involved in FK relations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants