File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ public void Configure(IWebHostBuilder builder) => builder
1616 ?? "DataSource=App_Data/app.db;Cache=Shared" ;
1717
1818 services . AddOrmLite ( options => options . UseSqlite ( connectionString ) ) ;
19+ // Retry deadlocks, throttling and lost connections on PostgreSQL, SQL Server and MySQL (SQLite isn't retried)
20+ OrmLiteConfig . RetryPolicy = OrmLiteRetry . Exponential ( maxRetries : 3 ) ;
1921
2022 // $ dotnet ef migrations add CreateIdentitySchema
2123 // $ dotnet ef database update
@@ -25,6 +27,9 @@ public void Configure(IWebHostBuilder builder) => builder
2527 } ) ;
2628
2729 // Enable built-in Database Admin UI at /admin-ui/database
28- services . AddPlugin ( new AdminDatabaseFeature ( ) ) ;
30+ services . AddPlugin ( new AdminDatabaseFeature {
31+ // Log differences between data models and their tables on startup
32+ LogSchemaDiff = context . HostingEnvironment . IsDevelopment ( ) ,
33+ } ) ;
2934 } ) ;
3035}
Original file line number Diff line number Diff line change 88 "build" : " npm run ui:build" ,
99 "secret:prod" : " gh secret set APPSETTINGS_JSON < appsettings.Production.json" ,
1010 "migrate" : " dotnet run --AppTasks=migrate" ,
11+ "migrate:new" : " dotnet run --AppTasks=migrate.new" ,
1112 "revert:last" : " dotnet run --AppTasks=migrate.revert:last" ,
1213 "revert:all" : " dotnet run --AppTasks=migrate.revert:all" ,
1314 "rerun:last" : " npm run revert:last && npm run migrate" ,
You can’t perform that action at this time.
0 commit comments