You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/08/22 09:00:58 UTC

[GitHub] [incubator-superset] pckhoi commented on issue #4691: superset db upgrade fails

pckhoi commented 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:
users@infra.apache.org


With regards,
Apache Git Services

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