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

SF rules: Changing DB column type from STRING to TEXT suggests a major change

    Details

      Description

      Steps to reproduce:

      1. Look for the portlet-model-hints.xml of a service, e.g. dynamic-data-mapping-service, and update the hint-collection from TEXTAREA to CLOB of a model's field;
      2. Run the buildService gradle command;
      3. Create a new Upgrade Process where you use the UpgradeProcess.AlterColumnType to change the DB type of that field to "TEXT";
      4. run the formatSource gradle command.

      Expected result:
      No error should appear on the console because this update, not always, means a major change on the schema.

      Actual result:
      Source formatting fails with a message like the following (indicating that a major bump to the schema version should be done):

      Expected new schema version: 3.0.0: ./src/main/java/com/liferay/dynamic/data/mapping/internal/upgrade/DDMServiceUpgrade.java 188 (SourceCheck:JavaUpgradeVersionCheck)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hugo.huijser Hugo Huijser
              Reporter:
              rodrigo.paulino Rodrigo Paulino
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                41 weeks ago

                  Packages

                  Version Package
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master