Types of fields resets every night in Data Model

We use MySQL Database where we created a materialised view. Every night we drop that table and create it once again to update information and to delete deprecated data:

DROP TABLE IF EXISTS summary.actions;
CREATE TABLE summary.actions AS

We lived this way by 26 of July. Then we faced with problem - the settings of types of fields in Data Model in Administration reset to default value “Without type” https://prnt.sc/tpv65r.
The other table which was made the same way feels good.

What can we do to stop it from resetting?

Can you just TRUNCATE the table?

1 Like

Hi @tritatuy
Please post “Diagnostic Info” from Admin > Troubleshooting.

Hi! That’s it:
“browser-info”: {
“language”: “ru-RU”,
“platform”: “MacIntel”,
“userAgent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36”,
“vendor”: “Google Inc.”
“system-info”: {
“file.encoding”: “UTF-8”,
“java.runtime.name”: “OpenJDK Runtime Environment”,
“java.runtime.version”: “11.0.7+10”,
“java.vendor”: “AdoptOpenJDK”,
“java.vendor.url”: “https://adoptopenjdk.net/”,
“java.version”: “11.0.7”,
“java.vm.name”: “OpenJDK 64-Bit Server VM”,
“java.vm.version”: “11.0.7+10”,
“os.name”: “Linux”,
“os.version”: “4.4.0-143-generic”,
“user.language”: “en”,
“user.timezone”: “UTC”
“metabase-info”: {
“databases”: [
“hosting-env”: “unknown”,
“application-database”: “postgres”,
“application-database-details”: {
“database”: {
“name”: “PostgreSQL”,
“version”: “11.4 (Ubuntu 11.4-1.pgdg16.04+1)”
“jdbc-driver”: {
“name”: “PostgreSQL JDBC Driver”,
“version”: “42.2.8”
“run-mode”: “prod”,
“version”: {
“date”: “2020-05-28”,
“tag”: “v0.35.4”,
“branch”: “release-0.35.x”,
“hash”: “b3080fa”
“settings”: {
“report-timezone”: null

I’ve done this way. Will be watching tomorrow!

@tritatuy This is fixed in 0.36.0 by this PR, which fixed several issues:

Thanks! We are going to update these days.
@AndrewMBaines, it looks like everything is OK! Thank you!