@@ 1045-1065 (lines=21) @@ | ||
1042 | } |
|
1043 | } |
|
1044 | ||
1045 | protected function doUserNewTalkTimestampNotNull() { |
|
1046 | if ( !$this->doTable( 'user_newtalk' ) ) { |
|
1047 | return true; |
|
1048 | } |
|
1049 | ||
1050 | $info = $this->db->fieldInfo( 'user_newtalk', 'user_last_timestamp' ); |
|
1051 | if ( $info === false ) { |
|
1052 | return; |
|
1053 | } |
|
1054 | if ( $info->isNullable() ) { |
|
1055 | $this->output( "...user_last_timestamp is already nullable.\n" ); |
|
1056 | ||
1057 | return; |
|
1058 | } |
|
1059 | ||
1060 | $this->applyPatch( |
|
1061 | 'patch-user-newtalk-timestamp-null.sql', |
|
1062 | false, |
|
1063 | 'Making user_last_timestamp nullable' |
|
1064 | ); |
|
1065 | } |
|
1066 | ||
1067 | protected function doIwlinksIndexNonUnique() { |
|
1068 | $info = $this->db->indexInfo( 'iwlinks', 'iwl_prefix_title_from' ); |
|
@@ 1087-1107 (lines=21) @@ | ||
1084 | ); |
|
1085 | } |
|
1086 | ||
1087 | protected function doUserNewTalkUseridUnsigned() { |
|
1088 | if ( !$this->doTable( 'user_newtalk' ) ) { |
|
1089 | return true; |
|
1090 | } |
|
1091 | ||
1092 | $info = $this->db->fieldInfo( 'user_newtalk', 'user_id' ); |
|
1093 | if ( $info === false ) { |
|
1094 | return true; |
|
1095 | } |
|
1096 | if ( $info->isUnsigned() ) { |
|
1097 | $this->output( "...user_id is already unsigned int.\n" ); |
|
1098 | ||
1099 | return true; |
|
1100 | } |
|
1101 | ||
1102 | return $this->applyPatch( |
|
1103 | 'patch-user-newtalk-userid-unsigned.sql', |
|
1104 | false, |
|
1105 | 'Making user_id unsigned int' |
|
1106 | ); |
|
1107 | } |
|
1108 | ||
1109 | protected function doRevisionPageRevIndexNonUnique() { |
|
1110 | if ( !$this->doTable( 'revision' ) ) { |