danylokhodus commited on
Commit
eb6d2f6
·
1 Parent(s): 53c4bda

feat: enable EF core migrations automatically on startup to update SQLite production DB schema

Browse files
Files changed (1) hide show
  1. FlowAPI/Program.cs +2 -2
FlowAPI/Program.cs CHANGED
@@ -149,8 +149,8 @@ namespace FlowAPI
149
  }
150
 
151
  // Run Migrations with a reasonable timeout
152
- // db.Database.SetCommandTimeout(120); // 2 minutes
153
- // db.Database.Migrate();
154
 
155
  // Manual lock clearing
156
  try {
 
149
  }
150
 
151
  // Run Migrations with a reasonable timeout
152
+ db.Database.SetCommandTimeout(120); // 2 minutes
153
+ db.Database.Migrate();
154
 
155
  // Manual lock clearing
156
  try {