Skip to content

Commit 23dcba0

Browse files
authored
Change the delete behavior of TimeTicker (#329)
* Change the delete behaviour of TimeTicker * Add the test project to release build * Update beta version
1 parent 9b9bf21 commit 23dcba0

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/pr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
dotnet build src/TickerQ.Dashboard/TickerQ.Dashboard.csproj --configuration Release
5454
dotnet build src/TickerQ.Instrumentation.OpenTelemetry/TickerQ.Instrumentation.OpenTelemetry.csproj --configuration Release
5555
dotnet build src/TickerQ.Caching.StackExchangeRedis/TickerQ.Caching.StackExchangeRedis.csproj --configuration Release
56+
dotnet build tests/TickerQ.Tests/TickerQ.Tests.csproj --configuration Release
5657
5758
- name: Run tests
58-
run: dotnet test tests/TickerQ.Tests/ --no-build
59+
run: dotnet test tests/TickerQ.Tests/ --configuration Release --no-build

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageTags>ticker;queue;cron;time;scheduler;fire-and-forget</PackageTags>
99
<PackageIcon>icon.jpg</PackageIcon>
1010
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
11-
<Version>8.0.0-beta.5</Version>
11+
<Version>8.0.0-beta.6</Version>
1212
<LangVersion>latest</LangVersion>
1313
</PropertyGroup>
1414

src/TickerQ.EntityFrameworkCore/Configurations/CronTickerOccurrenceConfigutaions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void Configure(EntityTypeBuilder<CronTickerOccurrenceEntity<TCronTicker>>
3333

3434
builder.HasOne(x => x.CronTicker)
3535
.WithMany()
36-
.HasForeignKey("CronTickerId")
36+
.HasForeignKey(x => x.CronTickerId)
3737
.OnDelete(DeleteBehavior.Cascade);
3838

3939
builder.HasIndex("CronTickerId", "ExecutionTime")

src/TickerQ.EntityFrameworkCore/Configurations/TimeTickerConfigurations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void Configure(EntityTypeBuilder<TTimeTicker> builder)
2424
builder.HasOne(x => x.Parent)
2525
.WithMany(x => x.Children)
2626
.HasForeignKey(x => x.ParentId)
27-
.OnDelete(DeleteBehavior.Cascade);
27+
.OnDelete(DeleteBehavior.NoAction);
2828

2929
builder.HasIndex("ExecutionTime")
3030
.HasDatabaseName("IX_TimeTicker_ExecutionTime");

0 commit comments

Comments
 (0)