mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 07:05:20 +00:00
Drop support for postgres 12
This commit is contained in:
parent
b06fd54c30
commit
d4de0ccbc1
|
@ -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+
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue