|
|
|
@ -24,6 +24,7 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
{ |
|
|
|
var steps = new List<ProjectBuildPipelineStep>(); |
|
|
|
|
|
|
|
ConfigureTenantSchema(context, steps); |
|
|
|
SwitchDatabaseProvider(context, steps); |
|
|
|
DeleteUnrelatedProjects(context, steps); |
|
|
|
RemoveMigrations(context, steps); |
|
|
|
@ -38,6 +39,19 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
return steps; |
|
|
|
} |
|
|
|
|
|
|
|
private static void ConfigureTenantSchema(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
|
{ |
|
|
|
if (context.BuildArgs.ExtraProperties.ContainsKey("separate-tenant-schema")) |
|
|
|
{ |
|
|
|
steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations")); |
|
|
|
steps.Add(new AppTemplateProjectRenameStep("MyCompanyName.MyProjectName.EntityFrameworkCore.SeparateDbMigrations", "MyCompanyName.MyProjectName.EntityFrameworkCore.DbMigrations")); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
steps.Add(new RemoveProjectFromSolutionStep("MyCompanyName.MyProjectName.EntityFrameworkCore.SeparateDbMigrations")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private static void SwitchDatabaseProvider(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
|
{ |
|
|
|
if (context.BuildArgs.DatabaseProvider == DatabaseProvider.MongoDb) |
|
|
|
|