Add MariaDB support (#156)
* Fixed startup db check * Relation tables are created automatically for IGDB metadata * Removed JSON dependency from filters * Removed JSON searches from Game library queries * Gaseous now runs without error on MariaDB * Fixed static database name bug * Updated docker files and README
This commit is contained in:
@@ -12,7 +12,7 @@ using Microsoft.OpenApi.Models;
|
||||
Logging.WriteToDiskOnly = true;
|
||||
Logging.Log(Logging.LogType.Information, "Startup", "Starting Gaseous Server " + Assembly.GetExecutingAssembly().GetName().Version);
|
||||
|
||||
Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);
|
||||
Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionStringNoDatabase);
|
||||
|
||||
// check db availability
|
||||
bool dbOnline = false;
|
||||
@@ -27,7 +27,9 @@ do
|
||||
{
|
||||
Thread.Sleep(30000);
|
||||
}
|
||||
} while (dbOnline == true);
|
||||
} while (dbOnline == false);
|
||||
|
||||
db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);
|
||||
|
||||
// set up db
|
||||
db.InitDB();
|
||||
|
Reference in New Issue
Block a user