简体   繁体   中英

Azure CICD for SQL Server database deployment using DbUp library

I am trying to deploy the database changes through Azure CICD using the DbUp library. But I don't really understand what are the steps to be followed are, and how to start off initially.

Can somebody share how we can deploy the SQL Server database changes using DbUp?

You may use extension - DbUp Migration

All what you need then it provide:

  • connection string
  • folder where you keep you script files
  • schema
  • table name where you are going to keep history
- task: UpdateDatabaseWithDbUp@2
  inputs:
    ConnectionString: 'Server=$(DbUp.Server);Database=$(DbUp.Database);User ID=$(DbUp.UserId);Password=$(DbUp.Password);Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;'
    ScriptPath: 'scripts'
    JournalSchemaName: 'dbo'
    JournalTableName: '_SchemaVersions'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM