Skip to content

Conversation

diatoming
Copy link

Summary

This PR add an option to allow user drop unique constraints when migrating with SyncEngine.migratePrimaryKeys.

Motivation

Current migrate method only convert primary key to UUID, unique constraints has not been dealt with.

Changes

  • Added dropUniqueConstraints to SyncEngine.migratePrimaryKeys
  • Added parseUniqueConstraintRange func in PrimaryKeyMigration

Testing

  • Added uniqueConstraintsDrop in PrimaryKeyMigrationTests, test schema for column and table unique constraints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant