Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/datajoint/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
Codec system, particularly for upgrading blob columns to use
explicit `<blob>` type declarations.

.. note::
This module is provided temporarily to assist with migration from pre-2.0.
It will be deprecated in DataJoint 2.1 and removed in 2.2.
Complete your migrations while on DataJoint 2.0.

Note on Terminology
-------------------
This module uses "external storage" because that was the term in DataJoint 0.14.6.
Expand All @@ -16,9 +21,22 @@

import logging
import re
import warnings
from typing import TYPE_CHECKING

from packaging.version import Version

from .errors import DataJointError
from .version import __version__

# Show deprecation warning starting in 2.1
if Version(__version__) >= Version("2.1"):
warnings.warn(
"datajoint.migrate is deprecated and will be removed in DataJoint 2.2. "
"Complete your schema migrations before upgrading.",
DeprecationWarning,
stacklevel=2,
)

if TYPE_CHECKING:
from .schemas import Schema
Expand Down
Loading