Fixed wrong naming for migration scripts

git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5735 8810af33-2d31-482b-a856-94f89814c4df
ccm-docs
jensp 2018-11-15 18:14:50 +00:00
parent 69b194b35a
commit c969814115
8 changed files with 54 additions and 4 deletions

View File

@ -18,6 +18,8 @@
*/ */
package org.librecms.contentsection; package org.librecms.contentsection;
import static org.librecms.CmsConstants.*;
import org.hibernate.envers.Audited; import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode; import org.hibernate.envers.RelationTargetAuditMode;
import org.hibernate.search.annotations.Field; import org.hibernate.search.annotations.Field;
@ -58,7 +60,6 @@ import org.librecms.contentsection.privileges.ItemPrivileges;
import javax.persistence.OrderBy; import javax.persistence.OrderBy;
import static org.librecms.CmsConstants.*;
/** /**
* Base type for all content item types. Specifies some common properties. * Base type for all content item types. Specifies some common properties.
@ -835,7 +836,7 @@ public class ContentItem extends CcmObject implements Serializable {
if (attachments == null) { if (attachments == null) {
this.attachments = new ArrayList<>(); this.attachments = new ArrayList<>();
} else { } else {
this.attachments = attachments; this.attachments = new ArrayList<>(attachments);
} }
} }

View File

@ -18,10 +18,11 @@
*/ */
package org.librecms.contentsection; package org.librecms.contentsection;
import static org.libreccm.core.CoreConstants.*;
import org.hibernate.annotations.NamedQueries; import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery; import org.hibernate.annotations.NamedQuery;
import static org.librecms.CmsConstants.*;
import org.libreccm.core.CcmObject; import org.libreccm.core.CcmObject;
import org.libreccm.l10n.LocalizedString; import org.libreccm.l10n.LocalizedString;

View File

@ -25,7 +25,6 @@ import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.IndexedEmbedded; import org.hibernate.search.annotations.IndexedEmbedded;
import org.libreccm.core.CcmObject; import org.libreccm.core.CcmObject;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -41,6 +40,20 @@ import static org.libreccm.core.CoreConstants.DB_SCHEMA;
import com.fasterxml.jackson.annotation.ObjectIdGenerators; import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import org.libreccm.imexport.Exportable; import org.libreccm.imexport.Exportable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/** /**
* A permission grants a privilege on an object or system wide to {@link Role}. * A permission grants a privilege on an object or system wide to {@link Role}.
* *

View File

@ -0,0 +1,12 @@
alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES
add column UUID varchar(255) not null;
alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES
add constraint UK_787va2ep8ucoul29qgsoaxnub unique (UUID);

View File

@ -0,0 +1,11 @@
alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS
add column UUID varchar(255) not null;
alter table CCM_CORE.WORKFLOW_TASK_ASSIGNMENTS
add constraint UK_gv93k167pe9qy3go9vjau1q2t unique (UUID);

View File

@ -0,0 +1,12 @@
alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES
add column UUID varchar(255) not null;
alter table CCM_CORE.WORKFLOW_TASK_DEPENDENCIES
add constraint UK_787va2ep8ucoul29qgsoaxnub unique (UUID);