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
|
@Data
|
||||||
@Entity(name = "BasePost")
|
@Entity(name = "BasePost")
|
||||||
@Table(name = "posts", indexes = @Index(columnList = "url"))
|
@Table(name = "posts")
|
||||||
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
|
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.INTEGER, columnDefinition = "int default 0")
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
|
|
@ -14,7 +14,7 @@ import javax.persistence.*;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "tags", indexes = @Index(columnList = "slug_name"))
|
@Table(name = "tags")
|
||||||
@ToString
|
@ToString
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class Tag extends BaseEntity {
|
public class Tag extends BaseEntity {
|
||||||
|
|
|
@ -14,7 +14,7 @@ import javax.persistence.*;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "theme_settings", indexes = {@Index(columnList = "setting_key")})
|
@Table(name = "theme_settings")
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class ThemeSetting extends BaseEntity {
|
public class ThemeSetting extends BaseEntity {
|
||||||
|
|
Loading…
Reference in New Issue