diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersionsFallback.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersionsFallback.java index c85b95bed5de..14a273555034 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersionsFallback.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersionsFallback.java @@ -5,7 +5,7 @@ @Component public class JsonSchemaVersionsFallback { private static final Integer serverVersion = 11; - public static final Integer clientVersion = 1; + public static final Integer clientVersion = 2; public Integer getServerVersion() { return serverVersion; diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/imports/internal/ImportServiceTests.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/imports/internal/ImportServiceTests.java index 38337a84be5a..90b21f24ada6 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/imports/internal/ImportServiceTests.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/imports/internal/ImportServiceTests.java @@ -272,6 +272,7 @@ public void setup() { testApplication.setLastDeployedAt(Instant.now()); testApplication.setModifiedBy("some-user"); testApplication.setGitApplicationMetadata(new GitArtifactMetadata()); + testApplication.setClientSchemaVersion(jsonSchemaVersions.getClientVersion()); Application.ThemeSetting themeSettings = getThemeSetting(); testApplication.setUnpublishedApplicationDetail(new ApplicationDetail()); @@ -2731,7 +2732,7 @@ public void applySchemaMigration_jsonFileWithFirstVersion_migratedToLatestVersio ApplicationJson latestApplicationJson = tuple.getT2(); assertThat(v1ApplicationJson.getServerSchemaVersion()).isEqualTo(1); - assertThat(v1ApplicationJson.getClientSchemaVersion()).isEqualTo(1); + assertThat(v1ApplicationJson.getClientSchemaVersion()).isEqualTo(2); assertThat(latestApplicationJson.getServerSchemaVersion()) .isEqualTo(jsonSchemaVersions.getServerVersion()); diff --git a/app/server/appsmith-server/src/test/resources/com/appsmith/server/migrations/application.json b/app/server/appsmith-server/src/test/resources/com/appsmith/server/migrations/application.json index def16682e2bc..c7e9785ecd98 100644 --- a/app/server/appsmith-server/src/test/resources/com/appsmith/server/migrations/application.json +++ b/app/server/appsmith-server/src/test/resources/com/appsmith/server/migrations/application.json @@ -1,6 +1,6 @@ { "artifactJsonType": "APPLICATION", - "clientSchemaVersion": 1.0, + "clientSchemaVersion": 2.0, "serverSchemaVersion": 7.0, "exportedApplication": { "name": "json-schema-migration", diff --git a/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/file-with-v1.json b/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/file-with-v1.json index c9b595ecacee..21b237c8143d 100644 --- a/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/file-with-v1.json +++ b/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/file-with-v1.json @@ -1,4 +1,4 @@ { "serverSchemaVersion": 1, - "clientSchemaVersion": 1 + "clientSchemaVersion": 2 }