mirror of https://github.com/halo-dev/halo
Remove database index support #178
parent
7d833bad0f
commit
cb2e38fea9
|
@ -17,7 +17,7 @@ import java.util.Date;
|
|||
*/
|
||||
@Data
|
||||
@Entity(name = "BasePost")
|
||||
@Table(name = "posts", indexes = @Index(columnList = "url"))
|
||||
@Table(name = "posts")
|
||||
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
|
|
|
@ -14,7 +14,7 @@ import javax.persistence.*;
|
|||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "tags", indexes = @Index(columnList = "slug_name"))
|
||||
@Table(name = "tags")
|
||||
@ToString
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Tag extends BaseEntity {
|
||||
|
|
|
@ -14,7 +14,7 @@ import javax.persistence.*;
|
|||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "theme_settings", indexes = {@Index(columnList = "setting_key")})
|
||||
@Table(name = "theme_settings")
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class ThemeSetting extends BaseEntity {
|
||||
|
|
Loading…
Reference in New Issue