14 lines
546 B
SQL
14 lines
546 B
SQL
-- Revert changes to letter_outgoing_recipients table
|
|
ALTER TABLE letter_outgoing_recipients
|
|
DROP COLUMN IF EXISTS user_id,
|
|
DROP COLUMN IF EXISTS department_id,
|
|
DROP COLUMN IF EXISTS status,
|
|
DROP COLUMN IF EXISTS read_at,
|
|
DROP COLUMN IF EXISTS flag,
|
|
DROP COLUMN IF EXISTS is_archived;
|
|
|
|
-- Drop indexes
|
|
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_user;
|
|
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_department;
|
|
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_status;
|
|
DROP INDEX IF EXISTS idx_letter_outgoing_recipients_archived; |