Skip to content

Commit

Permalink
Fixes kitodo#3998
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge committed May 17, 2021
1 parent b608d61 commit e63613c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Client extends BaseBean {
private String name;

@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(name = "client_x_listColumn", joinColumns = {@JoinColumn(name = "client_id",
@JoinTable(name = "client_x_listcolumn", joinColumns = {@JoinColumn(name = "client_id",
foreignKey = @ForeignKey(name = "FK_client_id"))},
inverseJoinColumns = {@JoinColumn(name = "column_id",
foreignKey = @ForeignKey(name = "FK_column_id"))})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.kitodo.data.database.persistence.LdapGroupDAO;

@Entity
@Table(name = "ldapGroup")
@Table(name = "ldapgroup")
public class LdapGroup extends BaseBean {

@Column(name = "title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.kitodo.data.database.persistence.LdapServerDAO;

@Entity
@Table(name = "ldapServer")
@Table(name = "ldapserver")
public class LdapServer extends BaseBean {

@Column(name = "title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import javax.persistence.Table;

@Entity
@Table(name = "listColumn")
@Table(name = "listcolumn")
public class ListColumn extends BaseBean {

@Column(name = "title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.kitodo.data.database.enums.WorkflowConditionType;

@Entity
@Table(name = "workflowCondition")
@Table(name = "workflowcondition")
public class WorkflowCondition extends BaseBean {

@Column(name = "type")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--
-- (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
--
-- This file is part of the Kitodo project.
--
-- It is licensed under GNU General Public License version 3 or later.
--
-- For the full copyright and license information, please read the
-- GPL3-License.txt file that was distributed with this source code.
--

ALTER TABLE client_x_listColumn RENAME TO client_x_listcolumn;
ALTER TABLE ldapGroup RENAME TO ldapgroup;
ALTER TABLE ldapServer RENAME TO ldapserver;
ALTER TABLE listColumn RENAME TO listcolumn;
ALTER TABLE workflowCondition RENAME TO workflowcondition;

0 comments on commit e63613c

Please sign in to comment.