microsoft / microsoft/DacFx

DacFx,Sqlpackage.exe And DropIndexNotInSource Enhancements

Open
#205 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
460
Forks
29
Avg merge
4d 9h
Merged PRs (30d)
7

Description

It would be great if despite having DropIndexNotInSource set to false drops and recreates auto_created indexes automatically when there's a change to one of the columns part of auto_created index,without intervening manually. We have a situation where we want to retain all auto_created indexes that are not in source and when a column is modified for whatever reason and if there's a auto_created on it dacfx/sqlpackage.exe should handle it without manual intervention or some sort of workaround solution by Customers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how DacFx and SqlPackage.exe handle DropIndexNotInSource, especially when an auto-created index includes a modified column. Reproduce the described schema change while retaining out-of-source auto-created indexes; done means the affected index is dropped and recreated automatically without manual intervention.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.