Fixed a typo in the DB migration

deploy_packages_to_gitea
Jens Pelzetter 2023-01-28 19:15:51 +01:00
parent 1b10e695b7
commit 35db22cd36
2 changed files with 1 additions and 9 deletions

View File

@ -101,14 +101,12 @@ public class Person extends ContactableEntity {
private LocalDate birthdate;
public Person() {
super();
personNames = new ArrayList<>();
}
public List<PersonName> getPersonNames() {
return Collections.unmodifiableList(personNames);
}
@ -118,7 +116,6 @@ public class Person extends ContactableEntity {
* @return
*/
public PersonName getPersonName() {
if (personNames.isEmpty()) {
return null;
} else {
@ -127,17 +124,14 @@ public class Person extends ContactableEntity {
}
protected void addPersonName(final PersonName personName) {
personNames.add(personName);
}
protected void removePersonName(final PersonName personName) {
personNames.remove(personName);
}
protected void setPersonNames(final List<PersonName> personNames) {
this.personNames = new ArrayList<>(personNames);
}
@ -163,7 +157,6 @@ public class Person extends ContactableEntity {
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
@ -201,13 +194,11 @@ public class Person extends ContactableEntity {
@Override
public boolean canEqual(final Object obj) {
return obj instanceof Person;
}
@Override
public String toString(final String data) {
return super.toString(
String.format(
// "surname = \"%s\", +"

View File

@ -18,6 +18,7 @@ create table CCM_CMS.Person_PersonName_AUD (
);
insert into ccm_cms.person_personname_aud (rev, person_id, person_name_id, revtype, revend) (select rev, person_id, person_name_id, revtype, revend from ccm_cms.person_names_aud);
alter table ccm_cms.person_names drop column person_id;
alter table ccm_cms.person_names_aud drop column person_id;
alter table CCM_CMS.Person_PersonName_AUD