mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 09:47:49 +02:00
[management] removal of foreign key constraint enforcement on sqlite (#3786)
This commit is contained in:
parent
59faaa99f6
commit
25faf9283d
@ -82,10 +82,6 @@ func NewSqlStore(ctx context.Context, db *gorm.DB, storeEngine types.Engine, met
|
||||
log.WithContext(ctx).Warnf("setting NB_SQL_MAX_OPEN_CONNS is not supported for sqlite, using default value 1")
|
||||
}
|
||||
conns = 1
|
||||
_, err = sql.Exec("PRAGMA foreign_keys = ON")
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to set foreign keys for sqlite: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
sql.SetMaxOpenConns(conns)
|
||||
|
Loading…
x
Reference in New Issue
Block a user