Reedy has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll
refs/changes/30/326030/1
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: newchange
Gerrit-Change-Id: I1574ebc5fc892388a480e3b2b522c70b27911a3f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SecurePoll
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits