Skip to content

Commit

Permalink
re-enable RLS on v2_job
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Feb 13, 2025
1 parent f15b67b commit 5922add
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/windmill-api/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,13 @@ async fn fix_job_completed_index(db: &DB) -> Result<(), Error> {
.await?;
});

run_windmill_migration!("v2_jobs_rls", &db, |tx| {
tracing::info!("Special migration to add index concurrently on job labels");
sqlx::query!("ALTER TABLE v2_job ENABLE ROW LEVEL SECURITY")
.execute(db)
.await?;
});

Ok(())
}

Expand Down

0 comments on commit 5922add

Please sign in to comment.