Skip to content

Commit 9f7356d

Browse files
docs: Fix legacy external storage patterns to match 0.14.6
The 0.14.6 implementation used: - Table definitions: blob@store, attach@store, filepath@store - Column comments: :blob@store:, :attach@store:, :filepath@store: The migrate.py patterns incorrectly searched for :external-store: format. Corrected to match actual v0.14.6 column comment format. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 23fe25a commit 9f7356d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/datajoint/migrate.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
logger = logging.getLogger(__name__.split(".")[0])
2121

2222
# Patterns for detecting 0.x external storage columns
23+
# In 0.14.6, table definitions used: blob@store, attach@store, filepath@store
24+
# These became column comments: :blob@store:, :attach@store:, :filepath@store:
2325
EXTERNAL_PATTERNS = {
24-
"blob": re.compile(r":external(?:-([a-zA-Z_][a-zA-Z0-9_]*))?:", re.I),
25-
"attach": re.compile(r":external-attach(?:-([a-zA-Z_][a-zA-Z0-9_]*))?:", re.I),
26+
"blob": re.compile(r":blob@([a-z][\-\w]*):", re.I),
27+
"attach": re.compile(r":attach@([a-z][\-\w]*):", re.I),
2628
}
2729

28-
FILEPATH_PATTERN = re.compile(r":filepath(?:-([a-zA-Z_][a-zA-Z0-9_]*))?:", re.I)
30+
FILEPATH_PATTERN = re.compile(r":filepath@([a-z][\-\w]*):", re.I)
2931

3032
# Pattern to detect blob types
3133
BLOB_TYPES = re.compile(r"^(tiny|small|medium|long|)blob$", re.I)

0 commit comments

Comments
 (0)