Skip to content

deprecate: Add deprecation warning to migrate module#1373

Merged
dimitri-yatsenko merged 4 commits intomasterfrom
deprecate/migrate-module
Feb 3, 2026
Merged

deprecate: Add deprecation warning to migrate module#1373
dimitri-yatsenko merged 4 commits intomasterfrom
deprecate/migrate-module

Conversation

@dimitri-yatsenko
Copy link
Member

@dimitri-yatsenko dimitri-yatsenko commented Feb 3, 2026

Summary

  • The datajoint.migrate module is provided temporarily to assist with migration from pre-2.0
  • Deprecation warning appears only in DataJoint 2.1+
  • Module will be removed in DataJoint 2.2

Changes

  • Updated docstring to clarify temporary nature and timeline
  • Made deprecation warning conditional on version >= 2.1
  • Updated warning message

Test plan

  • Import datajoint.migrate in 2.0 - no warning
  • Import datajoint.migrate in 2.1+ - DeprecationWarning is raised
  • CI tests pass

Related: datajoint-docs PR #149

🤖 Generated with Claude Code

dimitri-yatsenko and others added 4 commits February 3, 2026 09:28
The datajoint.migrate module will be removed in DataJoint 2.2.
Users will see a DeprecationWarning when importing the module,
giving them time to complete their schema migrations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Module is temporary, provided to assist migration from pre-2.0
- Deprecation warning only appears in 2.1+
- Will be removed in 2.2

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
String comparison fails for versions like "2.10" vs "2.2"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dimitri-yatsenko dimitri-yatsenko merged commit d4faadc into master Feb 3, 2026
7 checks passed
@dimitri-yatsenko dimitri-yatsenko deleted the deprecate/migrate-module branch February 3, 2026 17:35
@dimitri-yatsenko dimitri-yatsenko added the enhancement Indicates new improvements label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Indicates new improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant