diff --git a/db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb b/db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb index 3e9ab134b7d045..d29d7847c51b57 100644 --- a/db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb +++ b/db/post_migrate/20230803082451_add_unique_index_on_preview_cards_statuses.rb @@ -18,7 +18,7 @@ def down def supports_concurrent_reindex? @supports_concurrent_reindex ||= begin version = select_one("SELECT current_setting('server_version_num') AS v")['v'].to_i - version >= 12_000 + version >= 120_000 end end diff --git a/lib/mastodon/migration_helpers.rb b/lib/mastodon/migration_helpers.rb index 4a43f67c27cf3b..c382b5fbd5b839 100644 --- a/lib/mastodon/migration_helpers.rb +++ b/lib/mastodon/migration_helpers.rb @@ -202,7 +202,7 @@ def supports_drop_index_concurrently? def supports_add_column_with_default? version = select_one("SELECT current_setting('server_version_num') AS v")['v'].to_i - version >= 11_000 + version >= 110_000 end # Adds a foreign key with only minimal locking on the tables involved.