Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename database tables to lowercase #4412

Merged
merged 2 commits into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;