Drop support for postgres 12

Matt Jankowski 2024-11-01 18:32:19 -04:00
parent b06fd54c30
commit d4de0ccbc1
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ Mastodon acts as an OAuth2 provider, so 3rd party apps can use the REST and Stre
### Requirements
- **PostgreSQL** 12+
- **PostgreSQL** 13+
- **Redis** 4+
- **Ruby** 3.2+
- **Node.js** 18+

View File

@ -44,7 +44,7 @@ namespace :db do
task pre_migration_check: :environment do
version = ActiveRecord::Base.connection.database_version
abort 'This version of Mastodon requires PostgreSQL 12.0 or newer. Please update PostgreSQL before updating Mastodon.' if version < 120_000
abort 'This version of Mastodon requires PostgreSQL 13.0 or newer. Please update PostgreSQL before updating Mastodon.' if version < 130_000
end
Rake::Task['db:migrate'].enhance(['db:pre_migration_check'])