DROP INDEX IF EXISTS idx_files_correspondent; ALTER TABLE files DROP COLUMN IF EXISTS correspondent_id; DROP TABLE IF EXISTS correspondents;