Skip to content

Commit 9264e4d

Browse files
update error message for un-upgraded external stores.
1 parent 503a170 commit 9264e4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datajoint/heading.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,10 @@ def init_from_database(self, conn, database, table_name, context):
247247
category = next(c for c in SPECIAL_TYPES if TYPE_PATTERN[c].match(attr['type']))
248248
except StopIteration:
249249
if attr['type'].startswith('external'):
250-
raise DataJointError('Legacy datatype `{type}`. '
251-
'Migrate your external stores to datajoint 0.12'.format(**attr)) from None
250+
url = "https://docs.datajoint.io/python/admin/5-blob-config.html" \
251+
"#migration-between-datajoint-v0-11-and-v0-12"
252+
raise DataJointError('Legacy datatype `{type}`. Migrate your external stores to '
253+
'datajoint 0.12: {url}'.format(url=url, **attr)) from None
252254
raise DataJointError('Unknown attribute type `{type}`'.format(**attr)) from None
253255
if category == 'FILEPATH' and not _support_filepath_types():
254256
raise DataJointError("""

0 commit comments

Comments
 (0)