Skip to content

Commit d7867da

Browse files
committed
Fix count and minor display issues
Signed-off-by: Shawn Bulen <bulens@pacbell.net>
1 parent fd6b826 commit d7867da

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

other/upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5089,7 +5089,7 @@ function doTheDelete(theCheck)
50895089
* @param int $setSize The amount of entries after which to update the database.
50905090
* @return bool
50915091
*/
5092-
function MySQLConvertOldIp($targetTable, $oldCol, $newCol, $limit = 50000, $setSize = 100)
5092+
function MySQLConvertOldIp($targetTable, $oldCol, $newCol, $limit = 10000, $setSize = 100)
50935093
{
50945094
global $smcFunc, $step_progress;
50955095

other/upgrade_2-1_mysql.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ INSERT INTO {$db_prefix}settings (variable, value) VALUES ('defaultMaxListItems'
378378
array('variable')
379379
);
380380
---}
381+
---#
381382
382383
---# Disable Moderation Center Security if it doesn't exist
383384
---{
@@ -876,7 +877,7 @@ VALUES
876877
---#
877878
878879
/******************************************************************************/
879-
---- Adding background tasks support
880+
--- Adding background tasks support
880881
/******************************************************************************/
881882
---# Adding the new table
882883
CREATE TABLE IF NOT EXISTS {$db_prefix}background_tasks (
@@ -3321,6 +3322,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}board_permissions_view
33213322
deny smallint NOT NULL,
33223323
PRIMARY KEY (id_group, id_board, deny)
33233324
) ENGINE=MyISAM;
3325+
---#
33243326

33253327
---# upgrade check
33263328
---{
@@ -3331,7 +3333,7 @@ $upcontext['skip_db_substeps'] = !in_array('id_group', $table_columns) || !in_ar
33313333
---}
33323334
---#
33333335

3334-
---#
3336+
---# Truncate board_permissions view
33353337
TRUNCATE {$db_prefix}board_permissions_view;
33363338
---#
33373339

other/upgrade_2-1_postgresql.sql

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ VALUES
10611061
---#
10621062
10631063
/******************************************************************************/
1064-
---- Adding background tasks support
1064+
--- Adding background tasks support
10651065
/******************************************************************************/
10661066
---# Adding the sequence
10671067
CREATE SEQUENCE IF NOT EXISTS {$db_prefix}background_tasks_seq;
@@ -2010,7 +2010,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}moderator_groups (
20102010
/******************************************************************************/
20112011
--- Cleaning up integration hooks
20122012
/******************************************************************************/
2013-
---#
2013+
---# Deleting integration hooks
20142014
DELETE FROM {$db_prefix}settings
20152015
WHERE variable LIKE 'integrate_%';
20162016
---#
@@ -2150,6 +2150,7 @@ WHERE variable IN ('show_board_desc', 'display_quick_reply', 'show_mark_read', '
21502150
array('variable')
21512151
);
21522152
---}
2153+
---#
21532154

21542155
/******************************************************************************/
21552156
--- Updating files that fetched from simplemachines.org
@@ -3098,7 +3099,7 @@ ALTER TABLE {$db_prefix}log_errors
30983099
---#
30993100
31003101
/******************************************************************************/
3101-
--- update log_errors members ip with ipv6 support
3102+
--- update members ip with ipv6 support
31023103
/******************************************************************************/
31033104
---# upgrade check
31043105
---{
@@ -3108,7 +3109,7 @@ if (stripos($column_info['type'], 'inet') !== false)
31083109
---}
31093110
---#
31103111
3111-
---#
3112+
---# update old columns on members
31123113
ALTER TABLE {$db_prefix}members
31133114
ALTER member_ip DROP not null,
31143115
ALTER member_ip DROP default,
@@ -3594,6 +3595,7 @@ CREATE TABLE IF NOT EXISTS {$db_prefix}board_permissions_view
35943595
deny smallint NOT NULL,
35953596
PRIMARY KEY (id_group, id_board, deny)
35963597
);
3598+
---#
35973599

35983600
---# upgrade check
35993601
---{
@@ -3604,7 +3606,7 @@ $upcontext['skip_db_substeps'] = !in_array('id_group', $table_columns) || !in_ar
36043606
---}
36053607
---#
36063608

3607-
---#
3609+
---# Truncate board_permissions view
36083610
TRUNCATE {$db_prefix}board_permissions_view;
36093611
---#
36103612

0 commit comments

Comments
 (0)