Add Updater for Oracle
authorcsteipp <csteipp@wikimedia.org>
Mon, 3 Mar 2014 21:31:25 +0000 (13:31 -0800)
committercsteipp <csteipp@wikimedia.org>
Mon, 3 Mar 2014 21:31:25 +0000 (13:31 -0800)
Bug: 61015
Change-Id: I748d7531be90155d8b99472d3459e46ce4855f07

includes/installer/OracleUpdater.php
maintenance/oracle/archives/patch-user_password_expire.sql [new file with mode: 0644]

index 6c56b3a..02116ea 100644 (file)
@@ -96,6 +96,7 @@ class OracleUpdater extends DatabaseUpdater {
                        //1.23
                        array( 'addIndex', 'logging', 'i06', 'patch-logging_user_text_type_time_index.sql' ),
                        array( 'addIndex', 'logging', 'i07', 'patch-logging_user_text_time_index.sql' ),
+                       array( 'addField', 'user', 'user_password_expires', 'patch-user_password_expire.sql' ),
 
                        // KEEP THIS AT THE BOTTOM!!
                        array( 'doRebuildDuplicateFunction' ),
diff --git a/maintenance/oracle/archives/patch-user_password_expire.sql b/maintenance/oracle/archives/patch-user_password_expire.sql
new file mode 100644 (file)
index 0000000..8e752da
--- /dev/null
@@ -0,0 +1,3 @@
+define mw_prefix='{$wgDBprefix}';
+
+ALTER TABLE &mw_prefix.mwuser ADD user_password_expires TIMESTAMP(6) WITH TIME ZONE NULL DEFAULT NULL;