diff options
Diffstat (limited to 'models/db/index.go')
-rw-r--r-- | models/db/index.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/index.go b/models/db/index.go index f840a62c8..7609d8fb6 100644 --- a/models/db/index.go +++ b/models/db/index.go @@ -73,7 +73,7 @@ func postgresGetNextResourceIndex(ctx context.Context, tableName string, groupID // GetNextResourceIndex generates a resource index, it must run in the same transaction where the resource is created func GetNextResourceIndex(ctx context.Context, tableName string, groupID int64) (int64, error) { - if setting.Database.UsePostgreSQL { + if setting.Database.Type.IsPostgreSQL() { return postgresGetNextResourceIndex(ctx, tableName, groupID) } |