Skip to content

Commit f1c22a0

Browse files
committed
docs
1 parent a27f4a1 commit f1c22a0

File tree

1 file changed

+4
-6
lines changed
  • airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/java/io/airbyte/integrations/base/destination/typing_deduping/migrators

1 file changed

+4
-6
lines changed

airbyte-cdk/java/airbyte-cdk/typing-deduping/src/main/java/io/airbyte/integrations/base/destination/typing_deduping/migrators/Migration.kt

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ import io.airbyte.integrations.base.destination.typing_deduping.StreamConfig
44

55
/**
66
* Migrations may do two things:
7-
* <ol>
8-
* <li>Modify the raw table</li>
9-
* <li>Trigger a soft reset</li>
10-
* </ol>
7+
* 1. Modify the raw table
8+
* 2. Trigger a soft reset
119
*
1210
* The raw table modification should happen in {@link #migrateIfNecessary(Object, StreamConfig)}. However,
1311
* if multiple migrations want to trigger a soft reset, we should only trigger a single soft reset,
@@ -25,15 +23,15 @@ interface Migration<State> {
2523

2624
/**
2725
* Perform the migration if it's necessary. This typically looks like:
28-
* <pre>
26+
* ```
2927
* // Check the state blob
3028
* if (requireMigration(state)) {
3129
* // Check the database, in case a previous migration ran, but failed to update the state
3230
* if (requireMigration(database)) {
3331
* migrate();
3432
* }
3533
* }
36-
</pre> *
34+
* ```
3735
*/
3836
fun migrateIfNecessary(state: State, stream: StreamConfig): MigrationResult<State>
3937

0 commit comments

Comments
 (0)