mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 11:38:32 -07:00
mre work
This commit is contained in:
parent
b9dd08a8bc
commit
003dd47e3c
13 changed files with 422 additions and 18 deletions
|
@ -34,21 +34,22 @@ namespace PlexRequests.Core
|
|||
{
|
||||
public class Setup
|
||||
{
|
||||
|
||||
private static DbConfiguration Db { get; set; }
|
||||
public string SetupDb()
|
||||
{
|
||||
var db = new DbConfiguration(new SqliteFactory());
|
||||
var created = db.CheckDb();
|
||||
TableCreation.CreateTables(db.DbConnection());
|
||||
Db = new DbConfiguration(new SqliteFactory());
|
||||
var created = Db.CheckDb();
|
||||
TableCreation.CreateTables(Db.DbConnection());
|
||||
|
||||
if (created)
|
||||
{
|
||||
CreateDefaultSettingsPage();
|
||||
}
|
||||
|
||||
return db.DbConnection().ConnectionString;
|
||||
return Db.DbConnection().ConnectionString;
|
||||
}
|
||||
|
||||
public static string ConnectionString => Db.DbConnection().ConnectionString;
|
||||
|
||||
private void CreateDefaultSettingsPage()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue