Skip to content

Commit

Permalink
Merge 'develop' into 'add-blob-storage'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashair committed Dec 15, 2019
2 parents ded2160 + 54a7cc9 commit 4f8283d
Show file tree
Hide file tree
Showing 7 changed files with 828 additions and 19 deletions.
3 changes: 2 additions & 1 deletion HRPotter/Data/HRPotterContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
new Company { Id = 1, Name = "Microsoft" },
new Company { Id = 2, Name = "Apple" },
new Company { Id = 3, Name = "Google" },
new Company { Id = 4, Name = "EBR-IT" }
new Company { Id = 4, Name = "EBR-IT" },
new Company { Id = 5, Name = "Wizarding World" }
);

modelBuilder.Entity<Role>().HasData(
Expand Down
5 changes: 5 additions & 0 deletions HRPotter/HRPotter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@
<WCFMetadata Include="Connected Services" />
</ItemGroup>

<Target Name="Create Migrations Script" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Release'">
<Exec Command="dotnet tool restore" />
<Exec Command="dotnet ef migrations script --configuration $(Configuration) --no-build --idempotent --output $(TargetDir)\migrations.sql" />
</Target>

</Project>
Loading

0 comments on commit 4f8283d

Please sign in to comment.