Anomie has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378261 )

Change subject: Add "IF NOT EXISTS" to PostgreSQL patch-add-3d.sql
......................................................................

Add "IF NOT EXISTS" to PostgreSQL patch-add-3d.sql

If updates are run for the first time on an installation that already
has '3D' in the enum (e.g. because it's a fresh install), the update
fails. We can avoid that easily enough with "IF NOT EXISTS".

Change-Id: Iad10cb88cf1cb35cfb95ce98a556b33688158a88
---
M maintenance/postgres/archives/patch-add-3d.sql
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/61/378261/1

diff --git a/maintenance/postgres/archives/patch-add-3d.sql 
b/maintenance/postgres/archives/patch-add-3d.sql
index f892755..104162e 100644
--- a/maintenance/postgres/archives/patch-add-3d.sql
+++ b/maintenance/postgres/archives/patch-add-3d.sql
@@ -1 +1 @@
-ALTER TYPE media_type ADD VALUE '3D';
+ALTER TYPE media_type ADD VALUE IF NOT EXISTS '3D';

-- 
To view, visit https://gerrit.wikimedia.org/r/378261
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iad10cb88cf1cb35cfb95ce98a556b33688158a88
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <bjor...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to