Removed non null constraint for URL field for Bookmark asset. Does not work because assets are first created without any special fields.
parent
98be2152dd
commit
e8c13c6c0a
|
|
@ -39,8 +39,6 @@ import org.librecms.ui.contentsections.assets.BookmarkCreateStep;
|
||||||
import org.librecms.ui.contentsections.assets.BookmarkEditStep;
|
import org.librecms.ui.contentsections.assets.BookmarkEditStep;
|
||||||
import org.librecms.ui.contentsections.assets.MvcAssetEditKit;
|
import org.librecms.ui.contentsections.assets.MvcAssetEditKit;
|
||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
|
||||||
|
|
||||||
import static org.librecms.CmsConstants.*;
|
import static org.librecms.CmsConstants.*;
|
||||||
import static org.librecms.assets.AssetConstants.*;
|
import static org.librecms.assets.AssetConstants.*;
|
||||||
|
|
||||||
|
|
@ -78,8 +76,7 @@ public class Bookmark extends Asset implements Serializable {
|
||||||
)
|
)
|
||||||
private LocalizedString description;
|
private LocalizedString description;
|
||||||
|
|
||||||
@Column(name = "URL", length = 2048, nullable = false)
|
@Column(name = "URL", length = 2048)
|
||||||
@NotEmpty
|
|
||||||
private String url;
|
private String url;
|
||||||
|
|
||||||
public Bookmark() {
|
public Bookmark() {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
alter table ccm_cms.bookmarks alter column url drop noT null;
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
alter table ccm_cms.bookmarks alter column url drop noT null;
|
||||||
Loading…
Reference in New Issue