Create new docker-compose files for non-data dog and data dog services. New services include Postgres, cockroachdb, rabbitmq, redis, and elsa-server. Along with the services, a new bash script for migration and various new activities and endpoints are also added for the Elsa server. This set of changes broadens the operational environment of Elsa.
24 lines
727 B
Bash
Executable file
24 lines
727 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Define the modules to update
|
|
mods=("Alterations" "Runtime" "Management" "Identity")
|
|
|
|
# Define the list of providers
|
|
providers=("MySql" "SqlServer" "Sqlite" "PostgreSql")
|
|
|
|
# Loop through each module
|
|
for module in "${mods[@]}"; do
|
|
# Loop through each provider
|
|
for provider in "${providers[@]}"; do
|
|
providerPath="../src/modules/Elsa.EntityFrameworkCore.$provider"
|
|
sqlPath="$providerPath/Migrations/$module/v3.1.sql"
|
|
|
|
echo "Generating SQL for $provider..."
|
|
echo "SQL path: $sqlPath"
|
|
dotnet ef migrations script -p "$providerPath" -c "$module"ElsaDbContext -o "$sqlPath"
|
|
|
|
# Make the file writable:
|
|
chmod 777 "$sqlPath"
|
|
done
|
|
done
|