Skip to content

Commit

Permalink
correct conflict with dev
Browse files Browse the repository at this point in the history
  • Loading branch information
randhirexpresstech committed Jun 19, 2024
1 parent df1cd50 commit e72ff38
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 58 deletions.
8 changes: 4 additions & 4 deletions php/admin/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ function link_featured_image( $quiz_id ) {
*/
function qsm_add_author_column_in_db() {
global $mlwQuizMasterNext;

// return if sqlite db
if ( $mlwQuizMasterNext->is_sqlite_db() ) {
return;
}

if ( 1 !== intval( get_option( 'qsm_update_db_column', '' ) ) ) {

global $wpdb;
Expand All @@ -84,7 +84,7 @@ function qsm_add_author_column_in_db() {
);

if ( empty( $table_col_obj ) ) {
$wpdb->query( 'ALTER TABLE ' . $table . ' ADD ' . $col_name . ' ' . $col_def );
$mlwQuizMasterNext->wpdb_alter_table_query( 'ALTER TABLE ' . $table . ' ADD ' . $col_name . ' ' . $col_def );
}
}
}
Expand Down Expand Up @@ -251,7 +251,7 @@ function qsm_add_author_column_in_db() {

foreach ( $tables_to_convert as $table ) {
$query = "ALTER TABLE $table CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;";
$result = $wpdb->query($query);
$result = $mlwQuizMasterNext->wpdb_alter_table_query($query);

if ( ! $result ) {
$success = false;
Expand Down
Loading

0 comments on commit e72ff38

Please sign in to comment.