Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate daily_stations primary key #274

Conversation

PatrickNercessian
Copy link
Contributor

@PatrickNercessian PatrickNercessian changed the title Migrate daily_stations primary key feat: migrate daily_stations primary key Jun 26, 2024
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me!


-- Add new primary key
ALTER TABLE daily_stations
ADD PRIMARY KEY (day, station_id, inet_group, participant_address);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a newline character to the end of the file (EOL at EOF).

Suggested change
ADD PRIMARY KEY (day, station_id, inet_group, participant_address);
ADD PRIMARY KEY (day, station_id, inet_group, participant_address);

@bajtos bajtos enabled auto-merge (squash) June 28, 2024 06:54
@bajtos bajtos merged commit 521efe6 into filecoin-station:main Jun 28, 2024
6 checks passed
@bajtos
Copy link
Member

bajtos commented Jun 28, 2024

The DB schema migration took over a minute but was completed successfully. This change is live! 🎉

2024-06-28T07:01:33Z app[e2867541be3e68] cdg [info]Migrating DB schema from version 9 to version 10
2024-06-28T07:02:41Z app[e2867541be3e68] cdg [info]Migrated DB schema to version 10

@bajtos
Copy link
Member

bajtos commented Jun 28, 2024

@juliangruber hindsight please 🙏🏻

@PatrickNercessian PatrickNercessian deleted the feat-migrate-daily-stations-primary-key branch July 1, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants