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

uses sqlx query instead of migrations for creating extensions #551

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

shahadarsh
Copy link
Collaborator

@shahadarsh shahadarsh commented Feb 16, 2024

  • uses sqlx query instead of migrations for creating extensions
  • removes migrations for tembo cloud

@shahadarsh shahadarsh changed the title uses sqlx query instead of migrations for creeating extensions uses sqlx query instead of migrations for creating extensions Feb 16, 2024
@shahadarsh shahadarsh marked this pull request as ready for review February 16, 2024 20:43
for ext in instance_setting.final_extensions.clone().unwrap().iter() {
let query = &format!("CREATE EXTENSION IF NOT EXISTS {} CASCADE", ext.name);

Runtime::new().unwrap().block_on(SqlxUtils::execute_sql(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: Check if there is a better way to run this later.

@shahadarsh shahadarsh merged commit d45fda6 into main Feb 16, 2024
7 checks passed
@shahadarsh shahadarsh deleted the sqlx-query branch February 16, 2024 21:58
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