14 lines
352 B
PL/PgSQL
14 lines
352 B
PL/PgSQL
BEGIN;
|
|
|
|
-- Drop indexes
|
|
DROP INDEX IF EXISTS idx_letter_outgoing_attachments_revision;
|
|
DROP INDEX IF EXISTS idx_letter_outgoing_approvals_revision;
|
|
|
|
-- Remove revision_number from tables
|
|
ALTER TABLE letter_outgoing_attachments
|
|
DROP COLUMN IF EXISTS revision_number;
|
|
|
|
ALTER TABLE letter_outgoing_approvals
|
|
DROP COLUMN IF EXISTS revision_number;
|
|
|
|
COMMIT; |