Fixed wrong naming for migration scripts
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5735 8810af33-2d31-482b-a856-94f89814c4df
parent
2e7fbbebf6
commit
2a4dd27507
|
|
@ -18,6 +18,8 @@
|
|||
*/
|
||||
package org.librecms.contentsection;
|
||||
|
||||
import static org.librecms.CmsConstants.*;
|
||||
|
||||
import org.hibernate.envers.Audited;
|
||||
import org.hibernate.envers.RelationTargetAuditMode;
|
||||
import org.hibernate.search.annotations.Field;
|
||||
|
|
@ -58,7 +60,6 @@ import org.librecms.contentsection.privileges.ItemPrivileges;
|
|||
|
||||
import javax.persistence.OrderBy;
|
||||
|
||||
import static org.librecms.CmsConstants.*;
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
this.attachments = new ArrayList<>();
|
||||
} else {
|
||||
this.attachments = attachments;
|
||||
this.attachments = new ArrayList<>(attachments);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,11 @@
|
|||
*/
|
||||
package org.librecms.contentsection;
|
||||
|
||||
import static org.libreccm.core.CoreConstants.*;
|
||||
|
||||
import org.hibernate.annotations.NamedQueries;
|
||||
import org.hibernate.annotations.NamedQuery;
|
||||
|
||||
import static org.librecms.CmsConstants.*;
|
||||
|
||||
import org.libreccm.core.CcmObject;
|
||||
import org.libreccm.l10n.LocalizedString;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ import org.hibernate.search.annotations.Field;
|
|||
import org.hibernate.search.annotations.IndexedEmbedded;
|
||||
import org.libreccm.core.CcmObject;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
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 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}.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue