22 lines
952 B
SQL
22 lines
952 B
SQL
-- -----------------------------------------------------------------------------
|
|
-- 005_timestamp_evidence_rollback.sql
|
|
-- Sprint: SPRINT_20260119_009 Evidence Storage for Timestamps
|
|
-- Task: EVT-002 - PostgreSQL Schema Extension
|
|
-- Description: Rollback migration for timestamp and revocation evidence.
|
|
-- -----------------------------------------------------------------------------
|
|
|
|
-- Drop indexes first
|
|
DROP INDEX IF EXISTS evidence.idx_timestamp_artifact;
|
|
DROP INDEX IF EXISTS evidence.idx_timestamp_generation;
|
|
DROP INDEX IF EXISTS evidence.idx_timestamp_provider;
|
|
DROP INDEX IF EXISTS evidence.idx_timestamp_created;
|
|
|
|
DROP INDEX IF EXISTS evidence.idx_revocation_cert;
|
|
DROP INDEX IF EXISTS evidence.idx_revocation_valid;
|
|
DROP INDEX IF EXISTS evidence.idx_revocation_status;
|
|
DROP INDEX IF EXISTS evidence.idx_revocation_created;
|
|
|
|
-- Drop tables
|
|
DROP TABLE IF EXISTS evidence.revocation_snapshots;
|
|
DROP TABLE IF EXISTS evidence.timestamp_tokens;
|