Questions tagged [dbup]

DbUp is the little script runner which helps you to deploy changes to databases. It is an open source .NET library. It tracks which SQL scripts have been run already, and runs the change scripts that are needed to get your database up to date.

DbUp uses a builder to configure your database deployments. This library's entry point is DeployChanges.To followed by extension methods for all of the supported databases. You can find the source code on GitHub.

Here is the sample code to configure DbUp in your console application.

var runner = DeployChanges.To
    .SqlDatabase(connectionString)
    .WithScriptsEmbeddedInAssembly(Assembly.GetExecutingAssembly())
    .LogToConsole()
    .Build();
49 questions
0
votes
1 answer

Using DBup with octopus deploy error, (System.Data.SqlClient is not supported on this platform.)

I'm using .net core 2.1 project with DBUP library, but when I try to run the DBUP inside octopus deploy the migration tool is returning an error System.Data.SqlClient is not supported on this platform. I followed all these steps from an Octopus…
Lameira
  • 13
  • 5
0
votes
1 answer

DBUP - Run scripts in sequence

I'm trying to run some scripts in sequence to create and seed my database. However it seems like the second script never gets run. Furthermore, I think it's running the first script twice. public DatabaseFixture() { var connectionString =…
nick gowdy
  • 6,191
  • 25
  • 88
  • 157
0
votes
1 answer

Can someone provide me example for powershell for dbUP migartion?

I have made a console application for databse migration in .net core 2.0. It is working perfect, but now i want to go for CI/CD in jenkins for the migration. Can someone guide me for the same. and if possible example for the powershell to run .net…
0
votes
0 answers

Xml in Insert causing Fatal error of '?xml' must be defined

While running through 3rd party NuGet Package called DbUp INSERT INTO `portalquery` VALUES (31,'update portal.Config_PropertyValues set value = \''\r\n\'' where engineid = \''@engineid\'' and…
Adeel
  • 43
  • 7
1 2 3
4