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