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
|
@Data
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "attachments")
|
@Table(name = "attachments", indexes = {@Index(name = "attachments_media_type", columnList = "media_type")})
|
||||||
@ToString
|
@ToString
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class Attachment extends BaseEntity {
|
public class Attachment extends BaseEntity {
|
||||||
|
|
Loading…
Reference in New Issue