[Rt-commit] rt branch 5.0/users4-index-if-exists created. rt-5.0.3-143-g4453d909db
BPS Git Server
git at git.bestpractical.com
Wed Nov 9 20:28:05 UTC 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/users4-index-if-exists has been created
at 4453d909db4f6e58d1e7421e40010303e36269d5 (commit)
- Log -----------------------------------------------------------------
commit 4453d909db4f6e58d1e7421e40010303e36269d5
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Wed Nov 9 15:12:44 2022 -0500
Don't error if users4 index has been removed
The Users4 index has been in RT for a very long time, so
it should be found, but we shouldn't error if it has
been removed.
diff --git a/etc/upgrade/4.4.6/schema.Pg b/etc/upgrade/4.4.6/schema.Pg
index 628b446a75..c89407d9e0 100644
--- a/etc/upgrade/4.4.6/schema.Pg
+++ b/etc/upgrade/4.4.6/schema.Pg
@@ -1,2 +1,2 @@
-DROP INDEX Users4;
+DROP INDEX IF EXISTS Users4;
CREATE INDEX Users4 ON Users (LOWER(EmailAddress));
diff --git a/etc/upgrade/5.0.3/schema.Pg b/etc/upgrade/5.0.3/schema.Pg
index 628b446a75..c89407d9e0 100644
--- a/etc/upgrade/5.0.3/schema.Pg
+++ b/etc/upgrade/5.0.3/schema.Pg
@@ -1,2 +1,2 @@
-DROP INDEX Users4;
+DROP INDEX IF EXISTS Users4;
CREATE INDEX Users4 ON Users (LOWER(EmailAddress));
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list