I have a web application that is set up with Azure DevOps Pipelines, and the building of the actual app works just fine, but we need to be able to deploy database change scripts (e.g. alter procedure, create table, that sort of thing). This is not an Azure SQL database; it's a regular SQL database - actually multiple databases as each of our clients who use the application gets their own copy of the database on our server. So I might have 5 SQL scripts needing to each be deployed to 8 databases, or whatever, for some particular version, and I'm wondering how I can automate that using Pipelines.
I've been trying to read about how to do this but I haven't found much information on deploying to non-Azure databases, and I also need to know how to have the scripts run on multiple databases sequentially or simultaneously. Also I'm a bit confused as to how to specify to the build task which scripts actually need to be run - I have a project in Visual Studio full of SQL scripts and only the ones that have been added or changed need to run. Is there any way I can maybe create a text file with a list of script paths that would need to be run? Or only run the ones with a modified date greater than the date of the previous build, perhaps?