diff --git a/server/main-api/migrations/20240703163202_more_complete_calendar.up.sql b/server/main-api/migrations/20240703163202_more_complete_calendar.up.sql index 74335e1ea..3ecd939ab 100644 --- a/server/main-api/migrations/20240703163202_more_complete_calendar.up.sql +++ b/server/main-api/migrations/20240703163202_more_complete_calendar.up.sql @@ -1,4 +1,9 @@ -- Add up migration script here +-- these are pretty major changes => we should re-download everything +UPDATE en SET last_calendar_scrape_at = null WHERE last_calendar_scrape_at is not null; +UPDATE de SET last_calendar_scrape_at = null WHERE last_calendar_scrape_at is not null; +delete from calendar where 1=1 + ALTER TABLE calendar RENAME COLUMN stp_title_de TO title_de; ALTER TABLE calendar RENAME COLUMN stp_title_en TO title_en;