pymysql.err.OperationalError: (4091, "Unknown SEQUENCE: 'version_id_seq'")

Has anyone experienced this before? Seems to happen when I start creating new DocTypes.