Closed ChasNelson1990 closed 3 months ago
@sharful09 - these are the SQLite issues you and I spoke about earlier today. Are you hoping to put a PR in for v2.2.x (i.e. this week?). If not, as these are non-breaking, I propose to remove this from the milestone and mark as "won't fix" for the time being.
@ChasNelson1990 I saw two errors while syncing.
While first-time login the new database is created on SQLite db in the local machine. The tables definition gets from this table core.database_static_script
in bahis-serve. I saw there is duplicate definition therefore this error is happening.
There are 3 tables missing in the local database named:
Actually not missing these tables are there but the named missing with diagnostic
this word. like, this bahis_patient_registrydyncsv_live_diagnostic_rapid_table
exist with this bahis_patient_registrydyncsv_live_rapid_table
name. I talked with @taifur-bau Taifur Bhai regarding this he told me both are the same table only the name difference.
And just to check, this is true for both Dev and prod? Can you propose a set of changes for us to test in Dev? Just put the procedure here as a comment for now and then we can try it next week after the release of 2.2.x?
I got these errors from the electron log in the console. How can I access the console in the prod version?
To solve the first error we need to remove duplicate rows from core.database_static_script
in this table.
for the second error, we need to go more deep into the code to find out why the table name is different
I have checked in prod also getting the same error.
Bug Description
Whilst CSV data syncing is occurring, a load of SQLite errors land in the logs. This could be the cause of missing local data for users?
To Reproduce
Expected Behaviour
No response
Additional Context
No response