WIP: DataSource deletion SQL generator

Do not merge

This is a one-off script to perform the deletion part of the data migration in prod for !1107 (merged).
TODO:
- Maybe use Element.objects.trash for elements, or analyze the prod DB to see what queries are needed
- Also remove TranscriptionEntity and EntityLink
Edited by Erwan Rouchet
Merge request reports
Activity
Codecov Report
Merging #1129 (78472142) into master (439bdae2) will decrease coverage by
0.29%
. The diff coverage is0.00%
.@@ Coverage Diff @@ ## master #1129 +/- ## ========================================== - Coverage 88.13% 87.84% -0.30% ========================================== Files 244 245 +1 Lines 16505 16560 +55 ========================================== Hits 14547 14547 - Misses 1958 2013 +55
Impacted Files Coverage Δ ...ex/documents/management/commands/datasource_sql.py 0.00% <0.00%> (ø)
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 439bdae...7847214. Read the comment docs.Edited by Bastien Abadieadded 1 commit
- 165737b5 - Write both SQL and Python and update all relevant tables
added 1 commit
- 78472142 - Use local CSV file and handle multi-type sources
Please register or sign in to reply