Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-65971

buildUpgradeTable task doesn't work in modules when SchemaVersion is different than BundleVersion

    Details

      Description

      Steps to reproduce it:

      1. Go to modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/upgrade
      2. Create a folder called v1_0_1
      3. Go to that folder and create a folder called util
      4. Go to that folder and create a blank file called DDMTemplateTable.java
      5. Modify the file modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service/bnd.bnd file to set the new SchemaVersion, in this case:
        Liferay-Require-SchemaVersion: 1.0.1
      6. Add the following line to your _build. {username}

        .properties_:
        upgrade.table.dir=/home/achaparro/workspace/portal-master/modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/model/impl

      7. Go to modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service and execute "../../../../../gradlew buildUpgradeTable" (you could need to remove the file settings.gradle from the parent folder)

      Results:
      The file DDMTemplateTable.java is still blank

      Expected results:
      The file DDMTemplateTable.java contains the same content than the attached file (expected_DDMTemplateTable.java)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 10 weeks, 5 days ago

                Packages

                Version Package
                7.0.1 CE GA2