13 lines
383 B
SQL
13 lines
383 B
SQL
|
|
-- Drop indexes
|
||
|
|
DROP INDEX IF EXISTS idx_documents_batch_id;
|
||
|
|
DROP INDEX IF EXISTS idx_batch_uploads_status;
|
||
|
|
DROP INDEX IF EXISTS idx_batch_uploads_client_id;
|
||
|
|
|
||
|
|
-- Remove batch_id from documents table
|
||
|
|
ALTER TABLE documents DROP COLUMN IF EXISTS batch_id;
|
||
|
|
|
||
|
|
-- Drop batch uploads table
|
||
|
|
DROP TABLE IF EXISTS batch_uploads;
|
||
|
|
|
||
|
|
-- Drop batch status ENUM type
|
||
|
|
DROP TYPE IF EXISTS batch_status;
|