Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upgrade: Remove tsearch_extras cleanup code.
Alex Vandiver39cc830ae57d
diff --git a/scripts/lib/upgrade-zulip-stage-3 b/scripts/lib/upgrade-zulip-stage-3index c50751607c4..095bd48383d 100755--- a/scripts/lib/upgrade-zulip-stage-3+++ b/scripts/lib/upgrade-zulip-stage-3@@ -5,7 +5,6 @@# always run from the new version of Zulip, so any bug fixes take# effect on the very next upgrade.import argparse-import globimport hashlibimport loggingimport os@@ -29,7 +28,6 @@ from scripts.lib.zulip_tools import (get_config,get_config_file,parse_version_from,- run_psql_as_postgres,start_arg_parser,su_to_zulip,)@@ -149,14 +147,6 @@ def shutdown_server(fill_caches: bool = True) -> None:IS_SERVER_UP = False-if glob.glob("/usr/share/postgresql/*/extension/tsearch_extras.control"):- # Remove legacy tsearch_extras package references- run_psql_as_postgres(- config_file=config_file,- sql_query="DROP EXTENSION IF EXISTS tsearch_extras;",- )- subprocess.check_call(["apt-get", "remove", "-y", "postgresql-*-tsearch-extras"])-if not (args.skip_restart or args.skip_puppet):# We need to temporarily hold pgroonga, if installed -- upgrading# it without running the appropriate upgrade SQL can causediff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.pyindex 28c5d8ce7b6..292eaa4c2e6 100755--- a/scripts/lib/zulip_tools.py+++ b/scripts/lib/zulip_tools.py@@ -626,15 +626,6 @@ def get_deploy_options(config_file: configparser.RawConfigParser) -> list[str]:return shlex.split(get_config(config_file, "deployment", "deploy_options", ""))-def run_psql_as_postgres(- config_file: configparser.RawConfigParser,- sql_query: str,-) -> None:- dbname = get_config(config_file, "postgresql", "database_name", "zulip")- subcmd = shlex.join(["psql", "-v", "ON_ERROR_STOP=1", "-d", dbname, "-c", sql_query])- subprocess.check_call(["su", "postgres", "-c", subcmd])--def get_tornado_ports(config_file: configparser.RawConfigParser) -> list[int]:ports = []if config_file.has_section("tornado_sharding"):