db upgrade reverts database to a previous version
Make sure these boxes are checked before submitting your issue - thank you!
- [X ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [ X] I have reproduced the issue with at least the latest released version of superset.
- [ X] I have checked the issue tracker for the same issue and I haven't found one similar.
Superset version 0.28.1
When I do a db upgrade in 0.28.1 for a database from 0.24.0, the database contains old information. For example, tables that have been modified, go back to their previous configuration. It is as if the db upgrade, is using an old snapshot of the database. I've attached the db upgrade log, and it seems successful.
Expected results
The configuration should remain the same after the db upgrade is done.
Actual results
Table names/configuration are old.
Steps to reproduce
This could be difficult to reproduce, as we have made several edits to the tables
This could be difficult to reproduce, as we have made several edits to the tables
What kind of edits? DDL? DML? Could that be the source of the issue?
tables that have been modified, go back to their previous configuration
What does that mean? How have they been modified?
Also what database engine do you use?
I’ve reproduced this on a new installation. Here are the steps
-Install 0.24.0 keeping the default sqlite db for superset.db -pip install psycopg2 -Add a database in Sources (in our case Postgresql) -Add a table referencing a table in the database. -Edit the table, and change the table name (new name won’t reflect an actual table), and now put some sql to create a (Superset) View. -Save the table -Shutdown the 0.24.0 instance and copy the superset.db to a non running 0.28.1 instance -Do a superset db upgrade -Start the Superset 0.28.1 instance and navigate to Sources/Databases, and you will see the database you added previously -Go to Sources==>Tables, and you will not see the table added in the previous step.
Mike
From: Maxime Beauchemin [mailto:[email protected]] Sent: Thursday, November 08, 2018 4:29 PM To: apache/incubator-superset Cc: Prior, Mike; Author Subject: Re: [apache/incubator-superset] db upgrade reverts database to a previous version (#6307)
This could be difficult to reproduce, as we have made several edits to the tables What kind of edits? DDL? DML? Could that be the source of the issue?
tables that have been modified, go back to their previous configuration What does that mean? How have they been modified?
Also what database engine do you use?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/apache/incubator-superset/issues/6307#issuecomment-437059525, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqyiX1CCl_H2wtWEXv8SG4yTwnsOoq8hks5utFuzgaJpZM4YUkdP.
This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.