Index: branches/robchurch/newtalk/maintenance/updaters.inc |
— | — | @@ -964,7 +964,8 @@ |
965 | 965 | */ |
966 | 966 | function fix_newtalk() { |
967 | 967 | global $wgDatabase; |
968 | | - if( $wgDatabase->indexExists( 'user_newtalk', 'user_id' ) ) { |
| 968 | + $info = $wgDatabase->fieldInfo( 'user_newtalk', 'user_id' ); |
| 969 | + if( !$info->nullable() ) { |
969 | 970 | echo( "Fixing up `user_newtalk`..." ); |
970 | 971 | $wgDatabase->sourceFile( archive( 'patch-fix-newtalk.sql' ) ); |
971 | 972 | echo( "done.\n" ); |