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

No DB Prefix in key name, When migrate with db prefix. #23142

Closed
ThunderBirdsX3 opened this issue Feb 13, 2018 · 1 comment
Closed

No DB Prefix in key name, When migrate with db prefix. #23142

ThunderBirdsX3 opened this issue Feb 13, 2018 · 1 comment

Comments

@ThunderBirdsX3
Copy link
Contributor

  • Laravel Version: 5.5.x, 5.6.x
  • PHP Version: 7.1.13
  • Database Driver & Version: MySQL 5.7.20

Description:

In case of used prefix database.
When you run migrate, If use look at key name in indexs and foreign key. It has no prefix in key_name or name.

It will be a problem when you use same table structure in same database with not same prefix.

screen shot 2018-02-13 at 3 46 13 pm
screen shot 2018-02-13 at 3 47 06 pm
screen shot 2018-02-13 at 3 47 09 pm

Steps To Reproduce:

It should have prefix in key_name and name.

@wanghanlin
Copy link
Contributor

wanghanlin commented Feb 13, 2018

looks like a duplication of #7889
@ThunderBirdsX3 I think you can manually provide index name to avoid the problem for now

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

No branches or pull requests

3 participants