From b80ec3721d94b2d720516adb205b38ea9d71becd Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Tue, 21 Oct 2025 16:26:00 +0200 Subject: [PATCH] Drop support for PostgreSQL 13 (#36540) --- README.md | 2 +- config/initializers/strong_migrations.rb | 2 +- lib/tasks/db.rake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c0e596b72..7d72b35249 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Mastodon is a **free, open-source social network server** based on [ActivityPub] ### Requirements - **Ruby** 3.2+ -- **PostgreSQL** 13+ +- **PostgreSQL** 14+ - **Redis** 7.0+ - **Node.js** 20+ diff --git a/config/initializers/strong_migrations.rb b/config/initializers/strong_migrations.rb index 59053ca187..d722b16a0f 100644 --- a/config/initializers/strong_migrations.rb +++ b/config/initializers/strong_migrations.rb @@ -1,4 +1,4 @@ # frozen_string_literal: true StrongMigrations.start_after = 2017_09_24_022025 -StrongMigrations.target_version = 13 +StrongMigrations.target_version = 14 diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 054f8b0177..e5ca6ac2ac 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -63,7 +63,7 @@ namespace :db do task pre_migration_check: :environment do pg_version = ActiveRecord::Base.connection.database_version - abort 'This version of Mastodon requires PostgreSQL 13.0 or newer. Please update PostgreSQL before updating Mastodon.' if pg_version < 130_000 + abort 'This version of Mastodon requires PostgreSQL 14.0 or newer. Please update PostgreSQL before updating Mastodon.' if pg_version < 140_000 schema_version = ActiveRecord::Migrator.current_version abort <<~MESSAGE if ENV['SKIP_POST_DEPLOYMENT_MIGRATIONS'] && schema_version < 2023_09_07_150100