{"id":20333754,"url":"https://github.com/pdevito3/stewardef","last_synced_at":"2025-09-23T02:32:15.571Z","repository":{"id":262332583,"uuid":"886927695","full_name":"pdevito3/StewardEF","owner":"pdevito3","description":"🛠️ Simplifies EF management by helping to squash migrations","archived":false,"fork":false,"pushed_at":"2024-11-12T12:30:01.000Z","size":27,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T01:45:55.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdevito3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-11T21:29:12.000Z","updated_at":"2025-01-09T19:41:57.000Z","dependencies_parsed_at":"2024-11-11T21:55:21.012Z","dependency_job_id":"dd451759-677a-45ff-827f-b5613632a0ed","html_url":"https://github.com/pdevito3/StewardEF","commit_stats":null,"previous_names":["pdevito3/stewardef"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2FStewardEF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2FStewardEF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2FStewardEF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdevito3%2FStewardEF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdevito3","download_url":"https://codeload.github.com/pdevito3/StewardEF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233916818,"owners_count":18750449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:33:07.265Z","updated_at":"2025-09-23T02:32:10.516Z","avatar_url":"https://github.com/pdevito3.png","language":"C#","readme":"# StewardEF 🛠️\n\nStewardEF is a tool designed to make managing Entity Framework (EF) migrations easier for projects with a lengthy history. \nSpecifically, it is able to squash your migrations back to a single file and drastically speed up your build times.\n\nEF Core does not yet provide a built-in solution for squashing migrations yet ([relevant issue here](https://github.com/dotnet/efcore/issues/2174)), but in the meantime, StewardEF can help fill the gap.\n\n---\n\n## Installation\n\nInstall the `StewardEF` dotnet tool:\n\n```bash\ndotnet tool install -g StewardEF\n```\n\n## Commands\n\n### `squash`\n\nSquashes EF migrations into the first migration in the specified directory.\n\n#### **Usage:**\n\n```bash\nsteward squash -d path/to/migrations\n```\n##### Options\n\n- `-d (or [MigrationsDirectory])`: Path to the directory containing your EF migrations. If omitted, you'll be prompted to enter it interactively.\n\n#### **How It Works**\n\n\u003e ⚠️ The squash command will modify your migrations files, so **please** be sure to start with a clean commit before suqashing so you can easily undo your changes if needed\n\nThe squash command combines all existing migrations into a single, consolidated migration file. Here's how it works:\n\n- Combines Migration Methods: Aggregates the Up and Down methods across all migration files.\n- Retains Important Using Statements: Collects using statements from all migrations, ensuring no dependencies are missed.\n- Preserves the First Migration: Inserts the combined code into the first migration file in the specified directory.\n- Removes Redundant Files: Deletes all migrations except the first one, leaving a single, squashed migration.\n\nDepending on how your migrations were structured, you might need to make some manual adjustments after running squash. Some things to watch for:\n\n- Private Fields: If any private readonly fields or other member data are in your migrations, ensure they're properly defined in the combined migration file.\n- Variable Conflicts: Sometimes migrations contain variables with the same name across different files. Double-check the final file for duplicate variables and resolve them accordingly.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdevito3%2Fstewardef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdevito3%2Fstewardef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdevito3%2Fstewardef/lists"}