Skip to content

Commit

Permalink
Disable SQLite WAL mode for easier backup/restore ops
Browse files Browse the repository at this point in the history
  • Loading branch information
arktronic-sep committed Jul 25, 2022
1 parent de61168 commit 09305e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions sama/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public static void Main(string[] args)
{
var dbContext = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
dbContext.Database.Migrate();
dbContext.Database.ExecuteSqlRaw("PRAGMA journal_mode=DELETE;");
}

host.Services.GetRequiredService<Services.MonitorJob>().InitializeScheduler(host.Services);
Expand Down
4 changes: 2 additions & 2 deletions sama/sama.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<UserSecretsId>aspnet-WebApplication1-1C1369D5-B3C7-4414-ADD2-629BA88766C5</UserSecretsId>
<AssemblyVersion>1.2.1</AssemblyVersion>
<VersionPrefix>1.2.1</VersionPrefix>
<AssemblyVersion>1.2.2</AssemblyVersion>
<VersionPrefix>1.2.2</VersionPrefix>
<VersionSuffix>$([System.DateTime]::UtcNow.ToString(`yyyyMMdd-HHmm`))</VersionSuffix>
</PropertyGroup>

Expand Down

0 comments on commit 09305e8

Please sign in to comment.