Drop support for PostgreSQL 12 (#34744)
This commit is contained in:
		@@ -57,7 +57,7 @@ Mastodon is a **free, open-source social network server** based on ActivityPub w
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
### Requirements
 | 
					### Requirements
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- **PostgreSQL** 12+
 | 
					- **PostgreSQL** 13+
 | 
				
			||||||
- **Redis** 6.2+
 | 
					- **Redis** 6.2+
 | 
				
			||||||
- **Ruby** 3.2+
 | 
					- **Ruby** 3.2+
 | 
				
			||||||
- **Node.js** 20+
 | 
					- **Node.js** 20+
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
# frozen_string_literal: true
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
StrongMigrations.start_after = 2017_09_24_022025
 | 
					StrongMigrations.start_after = 2017_09_24_022025
 | 
				
			||||||
StrongMigrations.target_version = 12
 | 
					StrongMigrations.target_version = 13
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,7 +63,7 @@ namespace :db do
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  task pre_migration_check: :environment do
 | 
					  task pre_migration_check: :environment do
 | 
				
			||||||
    pg_version = ActiveRecord::Base.connection.database_version
 | 
					    pg_version = ActiveRecord::Base.connection.database_version
 | 
				
			||||||
    abort 'This version of Mastodon requires PostgreSQL 12.0 or newer. Please update PostgreSQL before updating Mastodon.' if pg_version < 120_000
 | 
					    abort 'This version of Mastodon requires PostgreSQL 13.0 or newer. Please update PostgreSQL before updating Mastodon.' if pg_version < 130_000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    schema_version = ActiveRecord::Migrator.current_version
 | 
					    schema_version = ActiveRecord::Migrator.current_version
 | 
				
			||||||
    abort <<~MESSAGE if ENV['SKIP_POST_DEPLOYMENT_MIGRATIONS'] && schema_version < 2023_09_07_150100
 | 
					    abort <<~MESSAGE if ENV['SKIP_POST_DEPLOYMENT_MIGRATIONS'] && schema_version < 2023_09_07_150100
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user