OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums OroPlatform How to name a index in OroPlatfrom migration

This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 year, 5 months ago.

  • Creator
    Topic
  • #37178
    mamreezaa
    mamreezaa
    Participant

    Can someone explain what are the best practices to create a index name for a schema ?
    i can see some index name like UNIQ_F82840BC6BF700BD, oro_workflow_step_name_idx
    But i am not sure how to define the names for index.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #37180
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    When you create indices using migrations you can optionally specify index name. If name will not be defined application will generate some unique name for you.

    It’s recommended to set index name explicitly so you can refer to it by name in other migrations and code.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No