mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 15:51:01 +00:00
FB-1505 - check if view 'standard' exists
This commit is contained in:
parent
51ca8a131b
commit
c0d630bee2
1 changed files with 2 additions and 2 deletions
|
|
@ -898,8 +898,8 @@ func (s *Server) ViewsRemoval(ctx context.Context) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if field.Options().NoStandardView {
|
||||
// delete view "standard" if NoStandardView is true
|
||||
if field.Options().NoStandardView && field.view(viewStandard) != nil {
|
||||
// delete view "standard" if NoStandardView is true and view "standard" exists
|
||||
for _, shard := range field.AvailableShards(true).Slice() {
|
||||
err := s.holder.txf.DeleteFragmentFromStore(index.Name(), field.Name(), viewStandard, shard, nil)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue