mirror of https://github.com/halo-dev/halo
feat: add index on attachments.media_type (#718)
parent
89dc411b0f
commit
01e4e5e271
|
@ -17,7 +17,7 @@ import javax.persistence.*;
|
|||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "attachments")
|
||||
@Table(name = "attachments", indexes = {@Index(name = "attachments_media_type", columnList = "media_type")})
|
||||
@ToString
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Attachment extends BaseEntity {
|
||||
|
|
Loading…
Reference in New Issue