refactor: remove unused ColumnType and inspect-columns files; update migration job to use separate table analyzers for source and target databases

This commit is contained in:
2026-04-12 19:16:14 -05:00
parent aded502ee4
commit 01780b4b02
6 changed files with 52 additions and 387 deletions

View File

@@ -91,7 +91,8 @@ func processMigrationJobs(
chJobs := make(chan config.Job, len(jobs))
var wgJobs sync.WaitGroup
tableAnalyzer := table_analyzers.NewMssqlTableAnalyzer(sourceDb)
sourceTableAnalyzer := table_analyzers.NewMssqlTableAnalyzer(sourceDb)
targetTableAnalyzer := table_analyzers.NewPostgresTableAnalyzer(targetDb)
extractor := extractors.NewMssqlExtractor(sourceDb)
transformer := transformers.NewMssqlTransformer()
loader := loaders.NewPostgresLoader(targetDb)
@@ -102,9 +103,8 @@ func processMigrationJobs(
log.Infof("[worker %d] >>> Processing job: %s.%s <<<", i, job.SourceTable.Schema, job.SourceTable.Table)
res := processMigrationJob(
ctx,
sourceDb,
targetDb,
tableAnalyzer,
sourceTableAnalyzer,
targetTableAnalyzer,
extractor,
transformer,
loader,