0
0
Fork 0

Fix incorrect PostgreSQL version check (#26979)

This commit is contained in:
Claire 2023-09-19 17:31:58 +02:00 committed by GitHub
parent f4b780ba22
commit abcc0b38fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -202,7 +202,7 @@ module Mastodon
def supports_add_column_with_default?
version = select_one("SELECT current_setting('server_version_num') AS v")['v'].to_i
version >= 11_000
version >= 110_000
end
# Adds a foreign key with only minimal locking on the tables involved.