4 Replies Latest reply on Nov 12, 2015 10:50 PM by BHAKTA RANJAN SATAPATHY

    could not prepare statement: 1; Message: no such table: sources

    Chris Child

      Hi

       

      I've only started getting the error in the title after setting encrypt_database in my build.yml file to 1. If I remove the encryption the Rho.ORM.getModel call works fine. The odd thing is that this is the only table that is causing a problem after setting encryption. The others are completely fine.

       

      Here is the code for creating the model.

      Rho.ORM.addModel(function(model) {

        model.modelName("User");

        model.enable("sync");

        model.property("username","string");

        model.property("localLogin","float");

        model.property("activeUser","float");

        model.set("partition", "credentials");

        });