Erster Teil von Upgrades auf die Version 2.0 (für alle Vorversionen)
git-svn-id: https://svn.libreccm.org/ccm/trunk@1634 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
763b831ba3
commit
2c2078e3fc
|
|
@ -32,6 +32,10 @@ public abstract class AbstractBundleUpgrade extends Program {
|
||||||
|
|
||||||
protected abstract String getBundleContraintName();
|
protected abstract String getBundleContraintName();
|
||||||
|
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "cms_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doRun(final CommandLine cmdLine) {
|
public void doRun(final CommandLine cmdLine) {
|
||||||
System.out.println("Starting upgrade...");
|
System.out.println("Starting upgrade...");
|
||||||
|
|
@ -66,9 +70,10 @@ public abstract class AbstractBundleUpgrade extends Program {
|
||||||
stmt.addBatch(String.format("ALTER TABLE ONLY %s "
|
stmt.addBatch(String.format("ALTER TABLE ONLY %s "
|
||||||
+ "ADD CONSTRAINT %s "
|
+ "ADD CONSTRAINT %s "
|
||||||
+ "FOREIGN KEY (bundle_id) "
|
+ "FOREIGN KEY (bundle_id) "
|
||||||
+ "REFERENCES cms_bundles(bundle_id);",
|
+ "REFERENCES %s(bundle_id);",
|
||||||
getBundleTableName(),
|
getBundleTableName(),
|
||||||
getBundleContraintName()));
|
getBundleContraintName(),
|
||||||
|
getSuperBundleTable()));
|
||||||
|
|
||||||
stmt.executeBatch();
|
stmt.executeBatch();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,56 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.ArticleInCollectedVolumeBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class ArticleInCollectedVolumeBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public ArticleInCollectedVolumeBundleUpgrade() {
|
||||||
|
super("ArticleInCollectedVolumeBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new ArticleInCollectedVolumeBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_article_in_collected_volume_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_article_in_collected_volume";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "article_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return ArticleInCollectedVolumeBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_article_in_collected_volume_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_art_in_col_vol_bun__f_u4b17";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.ArticleInJournalBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class ArticleInJournalBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public ArticleInJournalBundleUpgrade() {
|
||||||
|
super("ArticleInJournalBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new ArticleInJournalBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_article_in_journal_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_article_in_journal";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "article_in_journal_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return ArticleInJournalBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_art_in_jou_bun_bun__p__c88r";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_art_in_jou_bun_bun__f_3_p3l";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.CollectedVolumeBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class CollectedVolumeBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public CollectedVolumeBundleUpgrade() {
|
||||||
|
super("CollectedVolumeBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new CollectedVolumeBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_collected_volume_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_collected_volume";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "collected_volume_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return CollectedVolumeBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_coll_vol_bun_bun_id_p_2epsd";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_coll_vol_bun_bun_id_f__jijf";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getSuperBundleTable() {
|
||||||
|
return "ct_publication_with_publisher_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.ExpertiseBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class ExpertiseBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public ExpertiseBundleUpgrade() {
|
||||||
|
super("ExpertiseBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new ExpertiseBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_expertise_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_expertise";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "expertise_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return ExpertiseBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_expert_bund_bund_id_p_5e0fp";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_expert_bund_bund_id_f_ieiya";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.InProceedingsBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class InProceedingsBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public InProceedingsBundleUpgrade() {
|
||||||
|
super("InProceedingsBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new InProceedingsBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_inproceedings_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_inproceedings";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "inproceedings_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return InProceedingsBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_inprocee_bun_bun_id_p_v2f4k";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_inprocee_bun_bun_id_f_cam1l";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.InternetArticleBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class InternetArticleBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public InternetArticleBundleUpgrade() {
|
||||||
|
super("InternetArticleBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new InternetArticleBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_internet_article_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_internet_article";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "internet_article_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return InternetArticleBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_inte_art_bun_bun_id_p_vjjsh";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_inte_art_bun_bun_id_f_dretd";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,49 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.JournalBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class JournalBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public JournalBundleUpgrade() {
|
||||||
|
super("JournalBundle", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new JournalBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_journal_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_journal";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "journal_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return JournalBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_journ_bundl_bund_id_p_ecg0j";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_journ_bundl_bund_id_f_0jtmz";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.ProceedingsBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class ProceedingsBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public ProceedingsBundleUpgrade() {
|
||||||
|
super("ProceedingsBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new ProceedingsBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_proceedings_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_proceedings";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "proceedings_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return ProceedingsBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_proceed_bund_bun_id_p_sh1xo";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_proceed_bund_bun_id_f_loele";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_with_publisher_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package com.arsdigita.cms.contenttypes;
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
import com.arsdigita.util.cmd.Program;
|
import com.arsdigita.util.cmd.Program;
|
||||||
import com.arsdigita.runtime.RuntimeConfig;
|
import com.arsdigita.runtime.RuntimeConfig;
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.PublicationBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class PublicationBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public PublicationBundleUpgrade() {
|
||||||
|
super("PublicationBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new PublicationBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_publications";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "publication_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return PublicationBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_publica_bund_bun_id_p_ivy3p";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "cms_org_pub_map_pub_id_f_6udi3";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.PublicationWithPublisherBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class PublicationWithPublisherBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public PublicationWithPublisherBundleUpgrade() {
|
||||||
|
super("PublicationWithPublisherBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new PublicationWithPublisherBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_publication_with_publisher_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_publication_with_publisher";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "publication_with_publisher_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return PublicationWithPublisherBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_pub_wit_pub_bun_bun_p_qj70a";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_proceed_bund_bun_id_f_loele";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.PublisherBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class PublisherBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public PublisherBundleUpgrade() {
|
||||||
|
super("PublisherBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new PublicationBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_publisher_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_publisher";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "publisher_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return PublisherBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_publis_bund_bund_id_p_tu1nf";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_publis_bund_bund_id_f_321fl";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "cms_orgaunit_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,49 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.SeriesBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class SeriesBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public SeriesBundleUpgrade() {
|
||||||
|
super("SeriesBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new SeriesBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_series_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_series";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "series_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return SeriesBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_seri_bundl_bundl_id_p_tuvfn";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_seri_bundl_bundl_id_f_8wj0h";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.UnPublishedBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class UnPublishedBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public UnPublishedBundleUpgrade() {
|
||||||
|
super("UnPublishedBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args ) {
|
||||||
|
new UnPublishedBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_unpublished_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_unpublished";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "unpublished_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return UnPublishedBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_unpubli_bund_bun_id_p_yqn7m";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_unpubli_bund_bun_id_f_ipfu7";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "ct_publication_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<upgrade>
|
||||||
|
<version from="6.6.4" to="6.6.5">
|
||||||
|
<script class="com.arsdigita.cms.contenttypes.upgrades.SciDepartmentBundleUpgrade"/>
|
||||||
|
</version>
|
||||||
|
</upgrade>
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.SciDepartmentBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class SciDepartmentBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public SciDepartmentBundleUpgrade() {
|
||||||
|
super("SciDepartmentBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new SciDepartmentBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_sci_department_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_sci_departments";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "department_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return SciDepartmentBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_sci_depa_bun_bun_id_p_fq3eo";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_sci_depa_bun_bun_id_f_m74xq";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getSuperBundleTable() {
|
||||||
|
return "cms_orgaunit_bundles";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<upgrade>
|
||||||
|
<version from="6.6.4" to="6.6.5">
|
||||||
|
<script class="com.arsdigita.cms.contenttypes.upgrades.SciInstituteBundleUpgrade"/>
|
||||||
|
</version>
|
||||||
|
</upgrade>
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.SciInstituteBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class SciInstituteBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public SciInstituteBundleUpgrade() {
|
||||||
|
super("SciInstituteBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new SciInstituteBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_sci_institute_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_sci_institutes";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "institute_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return SciInstituteBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_sci_inst_bun_bun_id_p_vbt1k";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_sci_inst_bun_bun_id_f_b30ys";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getSuperBundleTable() {
|
||||||
|
return "cms_orgaunit_bundles";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<upgrade>
|
||||||
|
<version from="6.6.4" to="6.6.5">
|
||||||
|
<script class="com.arsdigita.cms.contenttypes.upgrades.SciProjectBundleUpgrade"/>
|
||||||
|
</version>
|
||||||
|
</upgrade>
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.upgrades;
|
||||||
|
|
||||||
|
import com.arsdigita.cms.contenttypes.SciProjectBundle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class SciProjectBundleUpgrade extends AbstractBundleUpgrade {
|
||||||
|
|
||||||
|
public SciProjectBundleUpgrade() {
|
||||||
|
super("SciProjectBundleUpgrade", "1.0.0", "");
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(final String[] args) {
|
||||||
|
new SciProjectBundleUpgrade().run(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleTableName() {
|
||||||
|
return "ct_sci_project_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getContentItemTableName() {
|
||||||
|
return "ct_sci_projects";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getIdColName() {
|
||||||
|
return "project_id";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleClassName() {
|
||||||
|
return SciProjectBundle.class.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getPrimaryKeyConstraintName() {
|
||||||
|
return "ct_sci_pro_bund_bun_id_p_tynqh";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getBundleContraintName() {
|
||||||
|
return "ct_sci_pro_bund_bun_id_f_n6se2";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getSuperBundleTable() {
|
||||||
|
return "cms_orgaunit_bundles";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue