mirror of https://github.com/halo-dev/halo
feat: add Index on theme_settings.setting_key and theme_settings.theme_id (#681)
parent
2363f4adf7
commit
4d431fd85d
|
@ -14,7 +14,9 @@ import javax.persistence.*;
|
|||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "theme_settings")
|
||||
@Table(name = "theme_settings",
|
||||
indexes = {@Index(name = "theme_settings_setting_key", columnList = "setting_key"),
|
||||
@Index(name = "theme_settings_theme_id", columnList = "theme_id")})
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class ThemeSetting extends BaseEntity {
|
||||
|
|
Loading…
Reference in New Issue