pckhoi edited a comment on issue #4691: superset db upgrade fails
URL: 
https://github.com/apache/incubator-superset/issues/4691#issuecomment-523816482
 
 
   @lilila very late answer to your original question but hope this will be 
helpful to those who comes later. Your `alembic_version` table is probably 
corrupted. In my case what I did was running `fabmanager create-db --app 
superset` initially instead of `superset db upgrade`, which create the tables 
but not the `alembic_version` table. To fix it I figured out the latest 
migration and ran this in my database:
   ```
   CREATE TABLE alembic_version (version_num character varying(32) PRIMARY KEY);
   INSERT INTO alembic_version (version_num) VALUES ('d6ffdf31bdd4');
   ```
   You'll have to replace the version_num with your own appropriate value of 
course.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to