Skip to content

Commit 02c8aa4

Browse files
committed
Rename migrate_schema_lineage to compute_schema_lineage
1 parent 70b0b9e commit 02c8aa4

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

datajoint/lineage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ def compute_all_lineage_for_table(connection, schema, table_name):
241241
}
242242

243243

244-
def migrate_schema_lineage(connection, schema):
244+
def compute_schema_lineage(connection, schema):
245245
"""
246-
Compute and populate the ~lineage table for an existing schema.
246+
Compute and populate the ~lineage table for a schema.
247247
248248
Analyzes foreign key relationships to determine attribute origins.
249249
@@ -283,7 +283,7 @@ def migrate_schema_lineage(connection, schema):
283283
if lineage is not None:
284284
lineage_table.store_lineage(table_name, attr_name, lineage)
285285

286-
logger.info(f"Migrated lineage for schema `{schema_name}`: {len(tables)} tables")
286+
logger.info(f"Computed lineage for schema `{schema_name}`: {len(tables)} tables")
287287

288288

289289
def get_lineage_for_heading(connection, schema, table_name, heading):

datajoint/schemas.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .external import ExternalMapping
1212
from .heading import Heading
1313
from .jobs import JobTable
14-
from .lineage import LineageTable, migrate_schema_lineage
14+
from .lineage import LineageTable, compute_schema_lineage
1515
from .settings import config
1616
from .table import FreeTable, Log, lookup_class_name
1717
from .user_tables import Computed, Imported, Lookup, Manual, Part, _get_tier
@@ -417,15 +417,14 @@ def lineage(self):
417417
self._lineage = LineageTable(self.connection, self.database)
418418
return self._lineage
419419

420-
def migrate_lineage(self):
420+
def compute_lineage(self):
421421
"""
422422
Compute and populate the ~lineage table for this schema.
423423
424424
Analyzes foreign key relationships to determine attribute origins.
425-
Use this to migrate an existing schema to support semantic matching.
426425
"""
427426
self._assert_exists()
428-
migrate_schema_lineage(self.connection, self.database)
427+
compute_schema_lineage(self.connection, self.database)
429428

430429
@property
431430
def code(self):

0 commit comments

Comments
 (0)