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

            jeremy.chen Jeremy Chen
            istvan.dezsi Istvan Dezsi
            Kiyoshi Lee Kiyoshi Lee
            Istvan Dezsi Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 41 weeks, 3 days 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