Files
omnivore/packages/db/migrations/0159.undo.alter_subscriptions.sql
2024-01-24 14:54:39 +08:00

15 lines
335 B
PL/PgSQL
Executable File

-- Type: UNDO
-- Name: alter_subscriptions
-- Description: Alter omnivore.subscriptions table to add a new state and date column
BEGIN;
ALTER TABLE omnivore.subscriptions
RENAME COLUMN most_recent_item_date TO last_fetched_at;
ALTER TABLE omnivore.subscriptions
DROP COLUMN failed_at,
DROP COLUMN refreshed_at;
COMMIT;