Skip to content

Commit

Permalink
implement NoOpMigration for 0.30.0-alpha (#6535)
Browse files Browse the repository at this point in the history
* add NoOpMigration for version 0.30.0-alpha

* add missing source type

* fix test
  • Loading branch information
subodh1810 authored Sep 29, 2021
1 parent 8b021a8 commit 13d13b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@
dockerRepository: airbyte/source-amazon-ads
dockerImageTag: 0.1.1
documentationUrl: https://docs.airbyte.io/integrations/sources/amazon-ads
sourceType: api
- sourceDefinitionId: 137ece28-5434-455c-8f34-69dc3782f451
name: LinkedIn Ads
dockerRepository: airbyte/source-linkedin-ads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class Migrations {
private static final Migration MIGRATION_V_0_27_0 = new MigrationV0_27_0(MIGRATION_V_0_26_0);
public static final Migration MIGRATION_V_0_28_0 = new MigrationV0_28_0(MIGRATION_V_0_27_0);
public static final Migration MIGRATION_V_0_29_0 = new MigrationV0_29_0(MIGRATION_V_0_28_0);
public static final Migration MIGRATION_V_0_30_0 = new NoOpMigration(MIGRATION_V_0_29_0, "0.30.0-alpha");

// all migrations must be added to the list in the order that they should be applied.
public static final List<Migration> MIGRATIONS = ImmutableList.of(
Expand All @@ -58,6 +59,7 @@ public class Migrations {
MIGRATION_V_0_26_0,
MIGRATION_V_0_27_0,
MIGRATION_V_0_28_0,
MIGRATION_V_0_29_0);
MIGRATION_V_0_29_0,
MIGRATION_V_0_30_0);

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class MigrationCurrentSchemaTest {
@Test
public void testLastMigration() {
final Migration lastMigration = Migrations.MIGRATIONS.get(Migrations.MIGRATIONS.size() - 1);
assertEquals(Migrations.MIGRATION_V_0_29_0.getVersion(), lastMigration.getVersion(),
assertEquals(Migrations.MIGRATION_V_0_30_0.getVersion(), lastMigration.getVersion(),
"The file-based migration is deprecated. Please do not write a new migration this way. Use Flyway instead.");
}

Expand Down

0 comments on commit 13d13b2

Please sign in to comment.