change MediaActor in all applications ffrom unique name to unique url
This commit is contained in:
@@ -31,7 +31,7 @@ type MediaActor struct {
|
||||
CreatedAt time.Time `bun:"created_date,nullzero,notnull,default:current_timestamp"`
|
||||
UpdatedAt time.Time `bun:"last_modified_date,nullzero,notnull,default:current_timestamp"`
|
||||
Version int `bun:"version,default:0"`
|
||||
Name string `bun:"name,unique:name"`
|
||||
Name string `bun:"name"`
|
||||
WebLink string `bun:"url,unique:url"`
|
||||
|
||||
MediaActorFiles []MediaActorFile `bun:"rel:has-many,join:id=media_actor_id"`
|
||||
|
||||
@@ -31,7 +31,7 @@ type MediaActor struct {
|
||||
CreatedAt time.Time `bun:"created_date,nullzero,notnull,default:current_timestamp"`
|
||||
UpdatedAt time.Time `bun:"last_modified_date,nullzero,notnull,default:current_timestamp"`
|
||||
Version int `bun:"version,default:0"`
|
||||
Name string `bun:"name,unique:name"`
|
||||
Name string `bun:"name"`
|
||||
WebLink string `bun:"url,unique:url"`
|
||||
|
||||
MediaActorFiles []MediaActorFile `bun:"rel:has-many,join:id=media_actor_id"`
|
||||
|
||||
@@ -39,10 +39,9 @@ public class MediaActor {
|
||||
private Date lastModifiedDate;
|
||||
|
||||
@NotEmpty
|
||||
@Column(unique = true)
|
||||
private String name;
|
||||
|
||||
@Column(nullable = true)
|
||||
@Column(nullable = true,unique = true)
|
||||
private String url;
|
||||
|
||||
@Column(nullable = true)
|
||||
|
||||
@@ -20,10 +20,10 @@ import java.util.List;
|
||||
public class MediaActor extends AbstractEntity {
|
||||
|
||||
@NotEmpty
|
||||
@Column(unique = true)
|
||||
private String name;
|
||||
|
||||
@Nullable
|
||||
@Column(unique = true)
|
||||
private String url;
|
||||
|
||||
@OneToMany(fetch = FetchType.EAGER, mappedBy = "media_actor", cascade = CascadeType.REFRESH, orphanRemoval = true)
|
||||
|
||||
Reference in New Issue
Block a user