-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made sure that we are ready for the comming ConnecTUM API-Change (#1281)
made sure that we are ready for the comming api change
- Loading branch information
1 parent
aaf991a
commit 2419b82
Showing
12 changed files
with
97 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
server/.sqlx/query-1ffddd843ece79fa10cfb98c2e8aff2842cad45867c3a72f807ae08c1b10cb37.json
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...7645c4b7413815693ebe3db92a62f2909dab.json → ...d6216530909e31c417d5234ac270e4d851c8.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
server/.sqlx/query-3f063afa6b1cee235b60edc06dee94adea3223725f8906025b3abebd24704ee4.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
server/main-api/migrations/20240703163202_more_complete_calendar.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Add down migration script here | ||
|
||
ALTER TABLE calendar RENAME COLUMN title_de TO stp_title_de; | ||
ALTER TABLE calendar RENAME COLUMN title_en TO stp_title_en; | ||
|
||
DELETE FROM calendar where stp_type is null; | ||
ALTER TABLE calendar ALTER COLUMN stp_type SET NOT NULL; |
10 changes: 10 additions & 0 deletions
10
server/main-api/migrations/20240703163202_more_complete_calendar.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- 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; | ||
|
||
ALTER TABLE calendar ALTER COLUMN stp_type drop not null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters