Files
omnivore/packages/db/migrations/0090.undo.add_position_to_labels.sql
2022-08-04 21:37:33 +08:00

16 lines
362 B
PL/PgSQL
Executable File

-- Type: UNDO
-- Name: add_position_to_labels
-- Description: Add position column to labels table
BEGIN;
DROP TRIGGER IF EXISTS increment_label_position ON omnivore.labels;
DROP TRIGGER IF EXISTS decrement_label_position ON omnivore.labels;
DROP FUNCTION IF EXISTS update_label_position;
ALTER TABLE omnivore.labels DROP COLUMN IF EXISTS position;
COMMIT;