Fido icon indicating copy to clipboard operation
Fido copied to clipboard

Database

Open sravimohan opened this issue 10 years ago • 6 comments

Is there a database creation script somewhere? I could only find the table descriptions in the wiki.

sravimohan avatar May 07 '15 06:05 sravimohan

I manually created a data folder and fido.db file under the application path. That seems to be what it's expecting. Unfortunately that still doesn't create a schema in it. Now I just get the following.

Loaded FIDO DB successfully. Running test configs. Fido processing complete... sleeping for 0 seconds.

My guess is that the installer (discussed in another issue thread) is meant to create the DB.

I'm also not clear why there is a "dbrelativepath" in appsettings but also a hard-coded path in the constructor.

     // from Object_Fido_Configs.cs
     var fidoSQLite = new SqLiteDB();


# # # #

    //  from SQLite.cs
    public SqLiteDB()
    {
      const string fidoDB = @"\data\fido.db";
      var sFidoDB = Application.StartupPath + fidoDB;

      if ((string.IsNullOrEmpty(sFidoDB)) | (!File.Exists(sFidoDB)))
      {
        Fido_EventHandler.SendEmail("Fido Error", "Fido Failed: {0} Unable to find Fido local DB.");
        return;
      }

hkelley avatar May 08 '15 17:05 hkelley

From what I gather you're right, you need more than just a fido.db, you need the full schema. Looks like a good chunk of the "config" schema is on the wiki, but no doubt there is significantly more to the schema than just the Config table and the various Configs_ tables as shown here: https://github.com/Netflix/Fido/wiki/Database

gpetersen avatar May 13 '15 00:05 gpetersen

Guys,

Thanks for posting. This was something I wasn't able to get out before release, but I'll have a working DB build script out next week. Thanks.

robfry avatar May 15 '15 20:05 robfry

+1 Is there any update planified soon ? Thanks

TiNico22 avatar Jun 17 '15 11:06 TiNico22

Hi Rob. I just wanted to check back with you regarding the DB build script.
Thanks.

JayRKay avatar Jul 17 '15 15:07 JayRKay

Je suis absent(e) du bureau jusqu'au 30/07/2015

Je r�pondrai � votre message d�s mon retour. En cas d'urgence, vous pouvez utiliser l'adresse : [email protected] .

I'm currently out of office. In case of emergency, please contact this mail address : [email protected] .

Cdlt / Best regards

N VERDIER

Remarque�: ceci est une r�ponse automatique � votre message "Re: [Fido] Database (#9)" envoy� le 17/07/2015 17:32:16.

C'est la seule notification que vous recevrez pendant l'absence de cette personne.

Systalians avatar Jul 17 '15 20:07 Systalians