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 a814024
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/windmill-api/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@ async fn fix_job_completed_index(db: &DB) -> Result<(), Error> {
.await?;
});

run_windmill_migration!("v2_jobs_rls", &db, |tx| {
sqlx::query!("ALTER TABLE v2_job ENABLE ROW LEVEL SECURITY")
.execute(db)
.await?;
});

Ok(())
}

Expand Down

0 comments on commit a814024

Please sign in to comment.