This is a project to explore Dacpacs. I have used Visual Studio on windows to create and manage the Database Project.
- Create a new VSCode Database project (using Visual Studio or Azure Data Studio)
- Import an existing database (or create a blank one)
- Commit the project to version control
- Setup CI/CD pipelines to deploy changes
- There is a need to rebuild the solution when adding database objects. Otherwise build will be successful but database objects will not be deployed
- No need to rebuild the solution when altering/deleting existing database objects
- ensure you check the target version of the database (right click and open properties file -> project settings -> Traget platform)
- to drop existing objects, ensure you have set
'/p:DropObjectsNotInSource=true'
in the sqlcmd run (in the CD pipeline)