Skip to content

Commit

Permalink
update AppAny package version and fix MySql and SqlServer migration f…
Browse files Browse the repository at this point in the history
…or Quartz (#4921)
  • Loading branch information
mohdali authored Feb 9, 2024
1 parent 60a349c commit 796438c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
15 changes: 5 additions & 10 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
<PackageVersion Include="xunit.abstractions" Version="2.0.3" />
<PackageVersion Include="xunit.extensibility.core" Version="2.6.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.4" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations" Version="0.5.0" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.MySql" Version="0.5.0" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL" Version="0.5.0" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SQLite" Version="0.5.0" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SqlServer" Version="0.5.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0'">
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations" Version="0.4.1-ef7" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.MySql" Version="0.4.1-ef7" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL" Version="0.4.1-ef7" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SQLite" Version="0.4.1-ef7" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SqlServer" Version="0.4.1-ef7" />
<PackageVersion Include="AspNetCore.Authentication.ApiKey" Version="7.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.14" />
Expand Down Expand Up @@ -132,11 +132,6 @@
<PackageVersion Include="System.Text.Json" Version="7.0.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations" Version="0.4.1-ef8" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.MySql" Version="0.4.1-ef8" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL" Version="0.4.1-ef8" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SQLite" Version="0.4.1-ef8" />
<PackageVersion Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SqlServer" Version="0.4.1-ef8" />
<PackageVersion Include="AspNetCore.Authentication.ApiKey" Version="8.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="8.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations" />
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations.MySql" />
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" PrivateAssets="all" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static QuartzFeature UseMySql(this QuartzFeature feature, string connecti
quartz.UsePersistentStore(store =>
{
store.UseNewtonsoftJsonSerializer();
store.UseMySql(connectionString);
store.UseMySqlConnector(options => options.ConnectionString = connectionString);

if (useClustering)
store.UseClustering();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations" />
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL" />
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" PrivateAssets="all" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations" />
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SqlServer" />
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" PrivateAssets="all" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ public static QuartzFeature UseSqlServer(this QuartzFeature feature, string conn
quartz.UsePersistentStore(store =>
{
store.UseNewtonsoftJsonSerializer();
store.UseSqlServer(connectionString);

store.UseSqlServer(options =>
{
options.ConnectionString = connectionString;
options.TablePrefix = "[quartz].qrtz_";

});

if (useClustering)
store.UseClustering();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations" />
<PackageReference Include="AppAny.Quartz.EntityFrameworkCore.Migrations.SQLite" />
<PackageReference Include="Microsoft.EntityFrameworkCore" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" PrivateAssets="all" />
Expand Down

0 comments on commit 796438c

Please sign in to comment.