Niharika29 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/304811

Change subject: [WIP] Add local ID and global ID to localuser table
......................................................................

[WIP] Add local ID and global ID to localuser table

Bug: T141951
Change-Id: I5dd361c0ded1c69dd0109c7cfafdcefe0ba5a94b
---
M .gitignore
M central-auth.sql
A db_patches/patch-lu_local_id.sql
3 files changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/11/304811/1

diff --git a/.gitignore b/.gitignore
index 1eeda6f..1be47ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
 /nbproject/private/
 /node_modules
 /vendor
+.idea/*
diff --git a/central-auth.sql b/central-auth.sql
index b7d064b..1d5cc19 100644
--- a/central-auth.sql
+++ b/central-auth.sql
@@ -1,3 +1,5 @@
+-- noinspection SqlNoDataSourceInspectionForFile
+-- noinspection SqlDialectInspectionForFile
 -- -- Some example steps for creating a new database for testing this:
 -- CREATE DATABASE centralauth;
 -- USE centralauth;
@@ -117,6 +119,8 @@
     'new',
     'login'
   ),
+  lu_local_id int(10) unsigned not null,
+  lu_global_id int(10) unsigned not null,
 
   primary key (lu_wiki, lu_name)
 ) /*$wgDBTableOptions*/;
diff --git a/db_patches/patch-lu_local_id.sql b/db_patches/patch-lu_local_id.sql
new file mode 100644
index 0000000..623f3d1
--- /dev/null
+++ b/db_patches/patch-lu_local_id.sql
@@ -0,0 +1,4 @@
+ALTER TABLE localuser
+  ADD COLUMN lu_local_id INT(10) UNSIGNED NOT NULL,
+  ADD COLUMN lu_global_id INT(10) UNSIGNED NOT NULL
+;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5dd361c0ded1c69dd0109c7cfafdcefe0ba5a94b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Niharika29 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to