diff --git a/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/AbstractBundleUpgrade.java b/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/AbstractBundleUpgrade.java
index e7a798b01..f18dbaf4b 100644
--- a/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/AbstractBundleUpgrade.java
+++ b/ccm-cms/src/com/arsdigita/cms/contenttypes/upgrades/AbstractBundleUpgrade.java
@@ -32,6 +32,10 @@ public abstract class AbstractBundleUpgrade extends Program {
protected abstract String getBundleContraintName();
+ protected String getSuperBundleTable() {
+ return "cms_bundles";
+ }
+
@Override
public void doRun(final CommandLine cmdLine) {
System.out.println("Starting upgrade...");
@@ -66,9 +70,10 @@ public abstract class AbstractBundleUpgrade extends Program {
stmt.addBatch(String.format("ALTER TABLE ONLY %s "
+ "ADD CONSTRAINT %s "
+ "FOREIGN KEY (bundle_id) "
- + "REFERENCES cms_bundles(bundle_id);",
+ + "REFERENCES %s(bundle_id);",
getBundleTableName(),
- getBundleContraintName()));
+ getBundleContraintName(),
+ getSuperBundleTable()));
stmt.executeBatch();
diff --git a/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java b/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java
index 52028a9ff..6d8a4b568 100755
--- a/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java
+++ b/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java
@@ -78,7 +78,7 @@ public class ReflectionInstantiator extends DomainObjectInstantiator {
SecurityException
{
Class javaClass = Class.forName(domainClassName);
- m_constructor = javaClass.getConstructor(s_dataArgs);
+ m_constructor = javaClass.getConstructor(s_dataArgs);
// We should add a check that the domain class is indeed
// a subclass of DomainObject
}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ArticleInCollectedVolumeBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ArticleInCollectedVolumeBundleUpgrade.java
new file mode 100644
index 000000000..12b9029f2
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ArticleInCollectedVolumeBundleUpgrade.java
@@ -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";
+ }
+
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ArticleInJournalBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ArticleInJournalBundleUpgrade.java
new file mode 100644
index 000000000..14e593e1d
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ArticleInJournalBundleUpgrade.java
@@ -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";
+ }
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/CollectedVolumeBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/CollectedVolumeBundleUpgrade.java
new file mode 100644
index 000000000..db0fe87a0
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/CollectedVolumeBundleUpgrade.java
@@ -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";
+ }
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ExpertiseBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ExpertiseBundleUpgrade.java
new file mode 100644
index 000000000..a2116050a
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ExpertiseBundleUpgrade.java
@@ -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";
+ }
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/InProceedingsBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/InProceedingsBundleUpgrade.java
new file mode 100644
index 000000000..19fc44d07
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/InProceedingsBundleUpgrade.java
@@ -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";
+ }
+}
\ No newline at end of file
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/InternetArticleBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/InternetArticleBundleUpgrade.java
new file mode 100644
index 000000000..8e8d69641
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/InternetArticleBundleUpgrade.java
@@ -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";
+ }
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/JournalBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/JournalBundleUpgrade.java
new file mode 100644
index 000000000..cc18776d9
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/JournalBundleUpgrade.java
@@ -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";
+ }
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ProceedingsBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ProceedingsBundleUpgrade.java
new file mode 100644
index 000000000..4c0f04b8d
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/ProceedingsBundleUpgrade.java
@@ -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";
+ }
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/PublicationAuthorAssocUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationAuthorAssocUpgrade.java
similarity index 99%
rename from ccm-sci-publications/src/com/arsdigita/cms/contenttypes/PublicationAuthorAssocUpgrade.java
rename to ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationAuthorAssocUpgrade.java
index de8509500..8f416db58 100644
--- a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/PublicationAuthorAssocUpgrade.java
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationAuthorAssocUpgrade.java
@@ -1,4 +1,4 @@
-package com.arsdigita.cms.contenttypes;
+package com.arsdigita.cms.contenttypes.upgrades;
import com.arsdigita.util.cmd.Program;
import com.arsdigita.runtime.RuntimeConfig;
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationBundleUpgrade.java
new file mode 100644
index 000000000..ad244c0bd
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationBundleUpgrade.java
@@ -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";
+ }
+
+
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationWithPublisherBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationWithPublisherBundleUpgrade.java
new file mode 100644
index 000000000..afb6eb3dc
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublicationWithPublisherBundleUpgrade.java
@@ -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";
+ }
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublisherBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublisherBundleUpgrade.java
new file mode 100644
index 000000000..53b774613
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/PublisherBundleUpgrade.java
@@ -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";
+ }
+
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/SeriesBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/SeriesBundleUpgrade.java
new file mode 100644
index 000000000..61ec309e1
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/SeriesBundleUpgrade.java
@@ -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";
+ }
+}
diff --git a/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/UnPublishedBundleUpgrade.java b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/UnPublishedBundleUpgrade.java
new file mode 100644
index 000000000..c065fe95b
--- /dev/null
+++ b/ccm-sci-publications/src/com/arsdigita/cms/contenttypes/upgrades/UnPublishedBundleUpgrade.java
@@ -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";
+ }
+
+}
diff --git a/ccm-sci-types-department/src/ccm-sci-types-department.upgrade b/ccm-sci-types-department/src/ccm-sci-types-department.upgrade
new file mode 100644
index 000000000..3fa19d36d
--- /dev/null
+++ b/ccm-sci-types-department/src/ccm-sci-types-department.upgrade
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ccm-sci-types-department/src/com/arsdigita/cms/contenttypes/upgrades/SciDepartmentBundleUpgrade.java b/ccm-sci-types-department/src/com/arsdigita/cms/contenttypes/upgrades/SciDepartmentBundleUpgrade.java
new file mode 100644
index 000000000..54c50fc30
--- /dev/null
+++ b/ccm-sci-types-department/src/com/arsdigita/cms/contenttypes/upgrades/SciDepartmentBundleUpgrade.java
@@ -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";
+ }
+}
diff --git a/ccm-sci-types-institute/src/ccm-sci-types-institute.upgrade b/ccm-sci-types-institute/src/ccm-sci-types-institute.upgrade
new file mode 100644
index 000000000..61222b98c
--- /dev/null
+++ b/ccm-sci-types-institute/src/ccm-sci-types-institute.upgrade
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ccm-sci-types-institute/src/com/arsdigita/cms/contenttypes/upgrades/SciInstituteBundleUpgrade.java b/ccm-sci-types-institute/src/com/arsdigita/cms/contenttypes/upgrades/SciInstituteBundleUpgrade.java
new file mode 100644
index 000000000..3df639706
--- /dev/null
+++ b/ccm-sci-types-institute/src/com/arsdigita/cms/contenttypes/upgrades/SciInstituteBundleUpgrade.java
@@ -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";
+ }
+}
diff --git a/ccm-sci-types-project/src/ccm-sci-types-project.upgrade b/ccm-sci-types-project/src/ccm-sci-types-project.upgrade
new file mode 100644
index 000000000..c187abe69
--- /dev/null
+++ b/ccm-sci-types-project/src/ccm-sci-types-project.upgrade
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ccm-sci-types-project/src/com/arsdigita/cms/contenttypes/upgrades/SciProjectBundleUpgrade.java b/ccm-sci-types-project/src/com/arsdigita/cms/contenttypes/upgrades/SciProjectBundleUpgrade.java
new file mode 100644
index 000000000..c23b7bead
--- /dev/null
+++ b/ccm-sci-types-project/src/com/arsdigita/cms/contenttypes/upgrades/SciProjectBundleUpgrade.java
@@ -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";
+ }
+
+}