Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-DbaDbCheckConstraint - new command #8132

Conversation

MikeyBronowski
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes # )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (effects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

Purpose

Expanding functionality.

Approach

Similar to Remove-DbaDbView, Remove-DbaDbMailProfile, Remove-DbaDbMailAccount, Remove-DbaAgentAlert (#7849)

Commands to test

Remove-DbaDbCheckConstraint -SqlInstance localhost, sql2016 -Database db1, db2

$chkcs = Get-DbaDbCheckConstraint -SqlInstance localhost, sql2016 -Database db1, db2
$chkcs | Remove-DbaDbCheckConstraint

Remove-DbaDbCheckConstraint -SqlInstance localhost, sql2016 -Database db1, db2 -ExcludeSystemTable

Screenshots

Learning

@MikeyBronowski MikeyBronowski marked this pull request as ready for review February 2, 2022 23:36
@potatoqualitee
Copy link
Member

awesome, thanks to you both! 🙇🏼

@potatoqualitee potatoqualitee merged commit 08179f2 into dataplat:development Feb 4, 2022
@MikeyBronowski MikeyBronowski deleted the Remove-DbaDbCheckConstraint branch February 4, 2022 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants