mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	We stopped using tsearch-extras in Zulip 2.1.0 after Anders figured out how to achieve its goals with native postgres. However, we never did a `DROP EXTENSION` on systems thta had upgraded, which meant that backups created on systems originally installed with Zulip 2.0.x and older, and later upgraded to Zulip 2.1.x, could not be restored on Zulip servers created with a fresh install of Zulip 2.1.x. We can't do this with a normal database migration, because DROP EXTENSION has to be done as the postgres user, so we add some custom migration code in the upgrade-zulip-stage-2 tool. It's safe to run this whenever tsearch_extras.control is installed because: * Zulip is AFAIK the only software that ever used tsearch_extras. * The package was only installed via puppet on production servers configured to run a local Zulip database. * We'll only run this code once per system, because it removes the package and thus the control files. Fixes #13612.