Skip to content

Commit

Permalink
Merge pull request SimpleMachines#8130 from dragomano/fix_type
Browse files Browse the repository at this point in the history
[2.1] Fix a typo with field type
  • Loading branch information
live627 committed Mar 5, 2024
2 parents 5cf1692 + abdc107 commit 9ebd5b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/DbPackages-mysql.php
Expand Up @@ -172,7 +172,7 @@ function smf_db_create_table($table_name, $columns, $indexes = array(), $paramet
if (
$key === false
|| !isset($columns[$key])
|| !in_array($columns[$key]['type'], array('text', 'mediumntext', 'largetext', 'varchar', 'char'))
|| !in_array($columns[$key]['type'], array('text', 'mediumtext', 'largetext', 'varchar', 'char'))
|| (
isset($size)
&& $size <= 191
Expand Down Expand Up @@ -534,7 +534,7 @@ function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_e
// If a size was already specified, we won't be able to match it anyways.
if (
!isset($cols[$c])
|| !in_array($cols[$c]['type'], array('text', 'mediumntext', 'largetext', 'varchar', 'char'))
|| !in_array($cols[$c]['type'], array('text', 'mediumtext', 'largetext', 'varchar', 'char'))
|| (
isset($size)
&& $size <= 191
Expand Down

0 comments on commit 9ebd5b0

Please sign in to comment.