jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/326030 )

Change subject: Add db patch to add securepoll_elections.el_owner
......................................................................


Add db patch to add securepoll_elections.el_owner

Bug: T152721
Change-Id: I1574ebc5fc892388a480e3b2b522c70b27911a3f
---
M includes/SecurePollHooks.php
A patches/patch-el_owner.sql
2 files changed, 7 insertions(+), 0 deletions(-)

Approvals:
  Huji: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/SecurePollHooks.php b/includes/SecurePollHooks.php
index c58dd54..794cc63 100644
--- a/includes/SecurePollHooks.php
+++ b/includes/SecurePollHooks.php
@@ -25,6 +25,11 @@
                                $updater->addExtensionIndex( 
'securepoll_options', 'spop_election',
                                        
"$base/patches/patch-op_election-index.sql"
                                );
+                               $updater->addExtensionField(
+                                       'securepoll_elections',
+                                       'el_owner',
+                                       "$base/patches/patch-el_owner.sql"
+                               );
                                break;
                        case 'postgres':
                                $updater->addExtensionTable( 
'securepoll_entity', "$base/SecurePoll.pg.sql" );
diff --git a/patches/patch-el_owner.sql b/patches/patch-el_owner.sql
new file mode 100644
index 0000000..c7081b0
--- /dev/null
+++ b/patches/patch-el_owner.sql
@@ -0,0 +1,2 @@
+ALTER TABLE /*_*/securepoll_elections
+ADD COLUMN el_owner int not null AFTER el_title;
\ No newline at end of file

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1574ebc5fc892388a480e3b2b522c70b27911a3f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: Huji <huji.h...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to