Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@Ocramius recommended I open this up to discuss the issue I am seeing.
I am trying to explicitly name the index on a column which is used in a join. I've attempted to add two functional tests in this PR to demonstrate what I am seeing. Please forgive me if these tests are not correctly, this is the first time I've attempted to submit a PR like this.
There are two situations I am encountering...
First, I explicitly name the index in the
@Table
annotation on the column used in the join - but the SQL generated fromSchemaTool
appears to be a random hash.Second, when I have an existing database table with an existing index and it's named properly (in this example, idx_maker_id) and then I run
SchemaTool->updateSchema()
it drops the index with the proper name and creates a new randomly hashed name.Is there a different way of accomplishing what I am trying to do here, or is this a bug?
Thanks for your help and assistance!