Commit be963a43 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

Migrate docuemnt converter version

parent 257a2e0f
......@@ -9928,5 +9928,8 @@
<changes xsi:type="history:MigrationChange" migration="org.bonitasoft.studio.migration.custom.migration.connector.UpdateGroovyConnectorVersionTo102"/>
<changes xsi:type="history:MigrationChange" migration="org.bonitasoft.studio.migration.custom.migration.connector.UpdateTransactionalGroovyConnectorVersionTo101"/>
</releases>
<releases date="2016-01-25T10:43:27.494+0100" label="7.2.0-002">
<changes xsi:type="history:MigrationChange" migration="org.bonitasoft.studio.migration.custom.migration.connector.UpdateDocumentConverterTo102"/>
</releases>
<releases/>
</history:History>
......@@ -20,7 +20,7 @@ package org.bonitasoft.studio.common;
public class ModelVersion {
public static final String VERSION_6_0_0_ALPHA = "6.0.0-Alpha";
public static final String CURRENT_VERSION = "7.2.0-001";
public static final String CURRENT_VERSION = "7.2.0-002";
public static boolean sameVersion(final String version) {
return CURRENT_VERSION.equals(version);
......
/**
* Copyright (C) 2015 Bonitasoft S.A.
* Bonitasoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.bonitasoft.studio.migration.custom.migration.connector;
import java.util.Objects;
/**
* @author Romain Bioteau
*/
public class UpdateDocumentConverterTo102 extends UpdateConnectorVersionMigration {
private static final String DOCUEMENT_CONVERTER_DEF_ID = "document-converter";
@Override
protected String getNewDefinitionVersion() {
return "1.0.2";
}
@Override
protected String getOldDefinitionVersion() {
return "1.0.1";
}
@Override
protected boolean shouldUpdateVersion(final String defId) {
return Objects.equals(defId, DOCUEMENT_CONVERTER_DEF_ID);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment