Ability to rollback sql action if anything fails

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, github-actions, sql, typescript
Domain
databases, devops

Research direction

Review the action's migration execution logic and how Entity Framework migration scripts are run against Azure SQL. Reproduce a migration with a deliberate failure, then verify whether partial changes and an entry in the EF migration history table remain; done means the migration is all-or-nothing and the behavior is covered by tests.

Written by the indexing model from the issue text.

Description

need-to-triage

I am using version 2.3 to run entity framework migrations against env databases. I would like to know if I can rollback all of the script if any failure happens. Currently, bits and pieces of a migration will work while others fail. The end result is an insert into the ef migration history table which is not ideal for us.

Dominant language
TypeScript
Stars
142
Forks
73
Avg merge
9d 18h
Merged PRs (30d)
2

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.

More from Azure/sql-action

All issues in Azure/sql-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.