After upgrading from v0.50.14 to v0.51.5, several questions return:
Table "databasename.null.tablename" is inactive.
It seems that a control was introduced to prevent questions from being executed on tables marked as inactive [1], but the issue might have existed before the upgrade.
When running the query:
SELECT * FROM metabase_table mt WHERE mt.name = 'COSTOS'
It appears that there are two records for each table. The one marked as inactive has a null
schema. This is probably due to the fact that, at some point, we switched from Firebird to SQL Server as the database engine.
The main issue is that we have several questions referencing both table IDs, and after the update, they stop working.
I can't set the schema because there is a unique constraint in the table that prevents it.
I considered changing the IDs referencing metabase_database
in, for example, report_card
and query_table
. However, I noticed that references to metabase_field
are also stored, and these would also need to be updated. Additionally, I see text fields containing JSON where these IDs appear. I'm not sure if this is the right approach.
Could this be a bug in database synchronization? If the schema is null
, shouldn't it default to the default schema?
Any advice would be greatly appreciated.