remove temp code
This commit is contained in:
parent
6e29418ba9
commit
6a47760cbf
1 changed files with 1 additions and 11 deletions
|
|
@ -19,7 +19,7 @@ if (builder.Environment.IsDevelopment())
|
|||
}
|
||||
else
|
||||
{
|
||||
dbConnectionString = "Data Source=JellyGlass.db;";
|
||||
dbConnectionString = "Data Source=./db/JellyGlass.db;";
|
||||
}
|
||||
|
||||
builder.Services.AddSqlite<DatabaseContext>(dbConnectionString);
|
||||
|
|
@ -36,16 +36,6 @@ using (var scope = app.Services.CreateScope())
|
|||
{
|
||||
var dbContext = scope.ServiceProvider.GetRequiredService<DatabaseContext>();
|
||||
dbContext.Database.Migrate();
|
||||
|
||||
dbContext.Servers.Add(new JellyGlass.Models.Server()
|
||||
{
|
||||
ApiToken = "56b6f91b816540b59d03a0db53c2dc8e",
|
||||
Id = "1",
|
||||
Owner = "Riley",
|
||||
Url = "https://jellyfin.foxhawk.co.uk"
|
||||
});
|
||||
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue