Skip to content

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

@ThunderBirdsX3

Description

@ThunderBirdsX3
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions