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

Doclib database table DLFileEntry renamed during upgrade process

    Details

      Description

      When upgrading from 7.0 to 7.3 the name of table DLFileEntry is modified to DlFileEntry.

      In 7.3's DLServiceUpgrade.java the constructor of the UpgradeViewCount is called, and for the first argument DlFileEntry is passed.

      registry.register(
      			"2.0.0", "3.0.0",
      			new UpgradeViewCount(
      				"DlFileEntry", DLFileEntry.class, "fileEntryId", "readCount"));
      

      In the constructor definition, this parameter is called tableName, as it is supposed to pass the name of a Liferay table.

      public UpgradeViewCount(
      		String tableName, Class<?> clazz, String primaryColumnName,
      		String viewCountColumnName) {
      
      		_tableName = tableName;
      		_clazz = clazz;
      		_primaryColumnName = primaryColumnName;
      		_viewCountColumnName = viewCountColumnName;
      	}
      

      Therefore, "DlFileEntry" argument should be renamed to "DLFileEntry", the correct name of the table.

        Attachments

          Activity

            People

            Assignee:
            jeremy.chen Jeremy Chen
            Reporter:
            istvan.dezsi Istvan Dezsi
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              40 weeks, 1 day ago

                Packages

                Version Package
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                7.4.13 DXP GA1
                Master