1
---
2
name: creating-oracle-to-postgres-master-migration-plan
3
description: 'Discovers all projects in a .NET solution, classifies each for Oracle-to-PostgreSQL migration eligibility, and produces a persistent master migration plan. Use when starting a multi-project Oracle-to-PostgreSQL migration, creating a migration inventory, or assessing which .NET projects contain Oracle dependencies.'
4
---
5
6
# Creating an Oracle-to-PostgreSQL Master Migration Plan
7
8
Analyze a .NET solution, classify every project for Oracle→PostgreSQL migration eligibility, and write a structured plan that downstream agents and skills can parse.
9
10
## Workflow
11
12
```
13
Progress:
14
- [ ] Step 1: Discover projects in the solution
15
- [ ] Step 2: Classify each project
16
- [ ] Step 3: Confirm with user
17
- [ ] Step 4: Write the plan file
18
```
19
20
**Step 1: Discover projects**
21
22
Find the Solution File (it has a `.sln` or `.slnx` extension) in the workspace root (ask the user if multiple exist). Parse it to extract all `.csproj` project references. For each project, note the name, path, and type (class library, web API, console, test, etc.).
23
24
**Step 2: Classify each project**
25
26
Scan every non-test project for Oracle indicators:
27
28
- NuGet references: `Oracle.ManagedDataAccess`, `Oracle.EntityFrameworkCore` (check `.csproj` and `packages.config`)
29
- Config entries: Oracle connection strings in `appsettings.json`, `web.config`, `app.config`
30
- Code usage: `OracleConnection`, `OracleCommand`, `OracleDataReader`
31
- DDL cross-references under `.github/oracle-to-postgres-migration/DDL/Oracle/` (if present)
32
33
Assign one classification per project:
34
35
| Classification | Meaning |
36
|---|---|
37
| **MIGRATE** | Has Oracle interactions requiring conversion |
38
| **SKIP** | No Oracle indicators (UI-only, shared utility, etc.) |
39
| **ALREADY_MIGRATED** | A `-postgres` or `.Postgres` duplicate exists and appears processed |
40
| **TEST_PROJECT** | Test project; handled by the testing workflow |
41
42
**Step 3: Confirm with user**
43
44
Present the classified list. Let the user adjust classifications or migration ordering before finalizing.
45
46
**Step 4: Write the plan file**
47
48
Save to: `.github/oracle-to-postgres-migration/Reports/MasterMigrationPlan.md`
49
50
Use this exact template — downstream consumers depend on the structure:
51
52
````markdown
53
# Master Migration Plan
54
55
**Solution:** {solution file name}
56
**Solution Root:** {REPOSITORY_ROOT}
57
**Created:** {timestamp}
58
**Last Updated:** {timestamp}
59
60
## DDL Artifacts
61
62
**Location:** {path to DDL artifacts, e.g., `.github/oracle-to-postgres-migration/DDL/`}
63
**External tool used:** {Yes / No} — {If Yes, name the tool (e.g., `ora2pg`) and note that Phase 4 (Schema & DDL Migration) can be skipped; PostgreSQL DDL artifacts already exist.}
64
65
## Solution Summary
66
67
| Metric | Count |
68
|--------|-------|
69
| Total projects in solution | {n} |
70
| Projects requiring migration | {n} |
71
| Projects already migrated | {n} |
72
| Projects skipped (no Oracle usage) | {n} |
73
| Test projects (handled separately) | {n} |
74
75
## Project Inventory
76
77
| # | Project Name | Path | Classification | Notes |
78
|---|---|---|---|---|
79
| 1 | {name} | {relative path} | MIGRATE | {notes} |
80
| 2 | {name} | {relative path} | SKIP | No Oracle dependencies |
81
82
## Migration Order
83
84
1. **{ProjectName}** — {rationale, e.g., "Core data access library; other projects depend on it."}
85
2. **{ProjectName}** — {rationale}
86
````
87
88
Order projects so that shared/foundational libraries are migrated before their dependents.
89