Fixing errors and danger zone

This commit is contained in:
Ian Roddis committed 2026-08-05 14:19:25 -03:00
1 parent 392b79e801
commit 2a0b8fcab2
4 files changed
+12 -14

No files matched your search

-3
View File
@@ -16,12 +16,9 @@ from app.models.fit import Fit, FitNote
from app.models.imported_part import ImportedPart
from app.models.iso_thread import IsoThread
from app.models.manufacturer import Manufacturer
from app.models.part_colour import PartColour
from app.models.part_type import PartType
from app.models.scope_info import ScopeInfo
from app.models.scope_model import ScopeModel
from app.models.static_connection import StaticConnection
from app.models.sub_part_type import SubPartType
from app.models.unc_thread import UncThread
# Children before the RESTRICT-protected reference tables they point to.
+6 -6
View File
@@ -8,15 +8,15 @@
<div class="card" style="border: 1px solid var(--color-danger, #c00)">
<h2>Purge database</h2>
<p>
Permanently deletes every part, taxonomy entry, attachment point, fit,
and imported part in the database — manufacturers, part colours, part
types, sub part types, scope models, ISO/UNC threads, clamp/static
connections, attachment point names, augmented parts, scope info,
attachment points, fits, fit notes, and imported parts.
Permanently deletes every part, attachment point, fit, and imported
part in the database — manufacturers, scope models, ISO/UNC threads,
clamp/static connections, attachment point names, augmented parts,
scope info, attachment points, fits, fit notes, and imported parts.
</p>
<p>
<strong>Not</strong> deleted: users, roles &amp; permissions, refresh
tokens, the audit log, and the OData connection configuration.
tokens, the audit log, the OData connection configuration, and part
taxonomy (part colours, part types, sub part types).
</p>
<p class="muted">This cannot be undone. Take a database backup first if you might need this data again.</p>
<button class="btn btn-danger"