Skip to content

Commit

Permalink
Merge pull request #5684 from EnterpriseDB/docs/edits_to_migration_to…
Browse files Browse the repository at this point in the history
…olkit_pr5658

Edits to Migration Toolkit PR5658
  • Loading branch information
djw-m authored Jun 3, 2024
2 parents 2fbb90a + 38f9969 commit 8fbd217
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions product_docs/docs/migration_toolkit/55/09_mtk_errors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -259,19 +259,18 @@ To correct the problem, specify `-fetchSize 1` as a command-line argument when y

### Incorrect timestamps and Daylight Saving Time

When migrating from SQL Server to PostgreSQL using the MSSQL JDBC driver there may be no errors observed. If the source database contains rows with timestamp values which are within a range of time when Daylight Savings Time was in effect, they will be migrated to the target database with the wrong timestamps.
When migrating from SQL Server to PostgreSQL using the MSSQL JDBC driver, an error in the migration of timestamps may occur that is not reported. Specifically, if the source database contains rows with timestamp values that are within a range of time when Daylight Savings Time was in effect, those rows will be migrated to the target database with the wrong timestamps.

To resolve this issue you can update the `runMTK.sh` file and provide the option `-Duser.timezone=GMT`. This will be in operation then when running the toolkit,
To resolve this issue, update the `runMTK.sh` file, and provide the option `-Duser.timezone=GMT`. This option will then be in effect when you run the toolkit.

For example, given the original line:
For example, suppose this is the original line:

```text
runJREApplication $JAVA_HEAP_SIZE -Dprop=$base/etc/toolkit.properties -cp $base/bin/edb-migrationtoolkit.jar:$base/lib/* com.edb.MigrationToolkit "$@"
```

This should be updated with the `-Duser.timezone=GMT` inserted before the `-cp` option:
Update this line by inserting `-Duser.timezone=GMT` before the `-cp` option:

```text
runJREApplication $JAVA_HEAP_SIZE -Dprop=$base/etc/toolkit.properties -Duser.timezone=GMT -cp $base/bin/edb-migrationtoolkit.jar:$base/lib/* com.edb.MigrationToolkit "$@"
```

1 comment on commit 8fbd217

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.