Ergänzungen an den Upgrades
git-svn-id: https://svn.libreccm.org/ccm/trunk@1507 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
a22561defa
commit
16fedf169b
|
|
@ -65,10 +65,6 @@ public class PublicPersonalProfileBundle extends ContentBundle {
|
|||
dobj = collection.getDataObject();
|
||||
collection.close();
|
||||
|
||||
final GenericPersonBundle bundle =
|
||||
(GenericPersonBundle) DomainObjectFactory.
|
||||
newInstance(dobj);
|
||||
|
||||
return (GenericPersonBundle) DomainObjectFactory.newInstance(dobj);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,7 +141,8 @@ public class PublicPersonalProfileOwnerAssocUpgrade extends Program {
|
|||
profilesRs.getInt(1)));
|
||||
stmt.addBatch(String.format(
|
||||
"UPDATE acs_objects "
|
||||
+ "SET default_domain_class = 'com.arsdigita.cms.contenttypes.PublicPersonalProfileBundle' "
|
||||
+ "SET default_domain_class = 'com.arsdigita.cms.contenttypes.PublicPersonalProfileBundle', "
|
||||
+ "object_type = 'com.arsdigita.cms.contenttypes.PublicPersonalProfileBundle' "
|
||||
+ "WHERE object_id = %d",
|
||||
profilesRs.getInt(1)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,7 +155,8 @@ public class GenericContactPersonAssocUpgrade extends Program {
|
|||
personsRs.getInt(1)));
|
||||
stmt.addBatch(String.format(
|
||||
"UPDATE acs_objects "
|
||||
+ "SET default_domain_class = 'com.arsdigita.cms.contenttypes.GenericPersonBundle' "
|
||||
+ "SET default_domain_class = 'com.arsdigita.cms.contenttypes.GenericPersonBundle',"
|
||||
+ "object_type = 'com.arsdigita.cms.contenttypes.GenericPersonBundle' "
|
||||
+ "WHERE object_id = %d",
|
||||
personsRs.getInt(1)));
|
||||
}
|
||||
|
|
@ -172,7 +173,8 @@ public class GenericContactPersonAssocUpgrade extends Program {
|
|||
contactsRs.getInt(1)));
|
||||
stmt.addBatch(String.format(
|
||||
"UPDATE acs_objects "
|
||||
+ "SET default_domain_class = 'com.arsdigita.cms.contenttypes.GenericContactBundle' "
|
||||
+ "SET default_domain_class = 'com.arsdigita.cms.contenttypes.GenericContactBundle', "
|
||||
+ "object_type = 'com.arsdigita.cms.contenttypes.GenericContactBundle' "
|
||||
+ "WHERE object_id = %d",
|
||||
contactsRs.getInt(1)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue