Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deleting artifacts with archived artifacts is not possible #3436

Open
antgonza opened this issue Sep 25, 2024 · 0 comments
Open

deleting artifacts with archived artifacts is not possible #3436

antgonza opened this issue Sep 25, 2024 · 0 comments

Comments

@antgonza
Copy link
Member

We should add the possibility of deleting preps with archived artifacts - this occurs in cases like when we have a woltka 0.1.2 artifact, we archive it (so we don't delete and we can comparet it) to a newer version, i.e. woltka 0.1.2.

Anyway, I just did this by hand and the steps were - note that it might be worth changing the order of the commands:

qiita=> DELETE FROM  qiita.artifact_filepath where artifact_id in (select artifact_id from qiita.preparation_artifact where prep_template_id = XXXX);
DELETE XX

qiita=> delete from qiita.preparation_artifact where prep_template_id = XXXX;
DELETE XX

qiita=> delete  FROM  qiita.study_artifact where artifact_id in (XXXX,XXXX,XXXX);
DELETE XX

qiita=> delete  FROM  qiita.artifact where artifact_id in (XXXX,XXXX,XXXX);
DELETE XX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant