mirror of https://github.com/halo-dev/halo
feat: add Index on menus.parent_id (#655)
parent
ee4bc01f65
commit
b2b349ae27
|
@ -15,7 +15,7 @@ import javax.persistence.*;
|
|||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "menus")
|
||||
@Table(name = "menus", indexes = {@Index(name = "menus_parent_id", columnList = "parent_id")})
|
||||
@ToString
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Menu extends BaseEntity {
|
||||
|
|
Loading…
Reference in New Issue