Skip to content

Commit

Permalink
🐛 Fixed table increment error
Browse files Browse the repository at this point in the history
  • Loading branch information
eduwardpost committed Oct 29, 2023
1 parent 5125c51 commit 81b0f05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions uActivityPub/Data/uActivitySettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NPoco;
using System.ComponentModel.DataAnnotations.Schema;
using NPoco;
using uActivityPub.Helpers;
using Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations;

Expand All @@ -10,16 +11,17 @@ namespace uActivityPub.Data;
[ExplicitColumns]
public class uActivitySettings
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[PrimaryKeyColumn(AutoIncrement = true, IdentitySeed = 1)]
[Column("UserId")]
[NPoco.Column("UserId")]
public int Id { get; set; }

[Column("Key")]
[NPoco.Column("Key")]
[SpecialDbType(SpecialDbTypes.NVARCHARMAX)]
[NullSetting(NullSetting = NullSettings.NotNull)]
public string Key { get; set; } = default!;

[Column("Value")]
[NPoco.Column("Value")]
[SpecialDbType(SpecialDbTypes.NVARCHARMAX)]
[NullSetting(NullSetting = NullSettings.NotNull)]
public string Value { get; set; } = default!;
Expand Down
4 changes: 2 additions & 2 deletions uActivityPub/uActivityPub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<Product>uActivityPub</Product>
<PackageId>uActivityPub</PackageId>
<Version>1.0.6</Version>
<AssemblyVersion>1.0.6</AssemblyVersion>
<Version>1.0.7</Version>
<AssemblyVersion>1.0.7</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
Expand Down

0 comments on commit 81b0f05

Please sign in to comment.