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