Skip to content

Commit

Permalink
update schema check for SQLite DB
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
  • Loading branch information
fjogeleit committed Sep 22, 2024
1 parent b640636 commit 2d66b8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/database/bun.go
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@ func (s *Store) fetchResults(ctx context.Context, id string) ([]v1alpha2.PolicyR
}

func (s *Store) RequireSchemaUpgrade(ctx context.Context) bool {
if s.IsSQLite() {
return true
}

config := Config{}

err := s.db.NewSelect().Model(&config).Where("id = ?", 1).Scan(ctx)
Expand Down

0 comments on commit 2d66b8d

Please sign in to comment.