mirror of https://github.com/tootsuite/mastodon
Drop support for postgres 12
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 New Issue