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(rust): update the postgres schema #8746

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

etorreborre
Copy link
Member

@etorreborre etorreborre commented Jan 14, 2025

This PR:

  1. Consolidates the current Postgres database schema (that schema is not yet used in production). Some tables are removed from that schema since Postgres will be used for managed nodes where some notions don't apply, like space, user and project.
  2. Removes the unused project_node table.
  3. Deactivates the automatic database upgrades on startup when Postgres is used (because we can't allow one individual managed node to trigger a full database migration).
  4. Makes sure that the ockam reset command cannot be used with a Postgres database.
  5. Adds some test support to run only the relevant tests with Postgres.

@etorreborre etorreborre self-assigned this Jan 14, 2025
@etorreborre etorreborre marked this pull request as ready for review January 14, 2025 16:19
@etorreborre etorreborre requested a review from a team as a code owner January 14, 2025 16:19
@etorreborre etorreborre enabled auto-merge January 14, 2025 16:30
@etorreborre etorreborre force-pushed the etorreborre/update-postgres-schema branch from a030ae4 to ea2a17f Compare January 15, 2025 13:25
@etorreborre etorreborre force-pushed the etorreborre/update-postgres-schema branch from ea2a17f to b93a0bc Compare January 15, 2025 13:28
Copy link
Member

@adrianbenavides adrianbenavides left a comment

Choose a reason for hiding this comment

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

Nice!

@etorreborre etorreborre added this pull request to the merge queue Jan 16, 2025
Merged via the queue into develop with commit 0ff890e Jan 16, 2025
44 checks passed
@etorreborre etorreborre deleted the etorreborre/update-postgres-schema branch January 16, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants