ovh/celery-director

Error on director db upgrade after downgrade command

nanduajith opened this issue · 0 comments

Steps to reproduce:

Downgrade the DB and remove the initial migration, by repeatedly using the command director db downgrade.
then upgrade the DB by using director db upgrade.

Error

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DuplicateObject) type "statustype" already exists

[SQL: CREATE TYPE statustype AS ENUM ('pending', 'progress', 'success', 'error', 'canceled')]
(Background on this error at: http://sqlalche.me/e/13/f405)