Files
omnivore/packages/db/migrations/0094.undo.add_state_to_speech.sql
2022-08-18 19:24:38 +08:00

18 lines
392 B
PL/PgSQL
Executable File

-- Type: UNDO
-- Name: add_state_to_speech
-- Description: Add state field to speech table
BEGIN;
ALTER TABLE omnivore.speech
DROP COLUMN bucket,
DROP COLUMN audio_file_name,
DROP COLUMN speech_marks_file_name,
DROP COLUMN state,
ADD COLUMN audio_url text NOT NULL,
ADD COLUMN speech_marks_url text NOT NULL;
DROP TYPE IF EXISTS speech_state_type CASCADE;
COMMIT;