File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 55Codec system, particularly for upgrading blob columns to use
66explicit `<blob>` type declarations.
77
8+ .. note::
9+ This module is provided temporarily to assist with migration from pre-2.0.
10+ It will be deprecated in DataJoint 2.1 and removed in 2.2.
11+ Complete your migrations while on DataJoint 2.0.
12+
813Note on Terminology
914-------------------
1015This module uses "external storage" because that was the term in DataJoint 0.14.6.
1621
1722import logging
1823import re
24+ import warnings
1925from typing import TYPE_CHECKING
2026
27+ from packaging .version import Version
28+
2129from .errors import DataJointError
30+ from .version import __version__
31+
32+ # Show deprecation warning starting in 2.1
33+ if Version (__version__ ) >= Version ("2.1" ):
34+ warnings .warn (
35+ "datajoint.migrate is deprecated and will be removed in DataJoint 2.2. "
36+ "Complete your schema migrations before upgrading." ,
37+ DeprecationWarning ,
38+ stacklevel = 2 ,
39+ )
2240
2341if TYPE_CHECKING :
2442 from .schemas import Schema
You can’t perform that action at this time.
0 commit comments