Forward-port lab3 SQLAlchemy and Alembic foundation
Carry source f591fa64e525679a31c9db7f942d36c789e1a12f forward from 72a1e57. Preserve lab4 attachment transactions, reconciliation locks, quarantine, and existing schema data through verified legacy adoption. Keep report and evidence work in progress untouched.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE attachments
|
||||
ADD COLUMN quarantine_reason text
|
||||
CHECK (quarantine_reason IN ('missing', 'size_mismatch', 'sha_mismatch')),
|
||||
ADD COLUMN quarantined_at timestamptz,
|
||||
ADD CONSTRAINT attachments_quarantine_check
|
||||
CHECK ((quarantine_reason IS NULL) = (quarantined_at IS NULL));
|
||||
Reference in New Issue
Block a user