. * * Attribution: This code is part of the All-in-One WP Migration plugin, developed by * * ███████╗███████╗██████╗ ██╗ ██╗███╗ ███╗ █████╗ ███████╗██╗ ██╗ * ██╔════╝██╔════╝██╔══██╗██║ ██║████╗ ████║██╔══██╗██╔════╝██║ ██╔╝ * ███████╗█████╗ ██████╔╝██║ ██║██╔████╔██║███████║███████╗█████╔╝ * ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██║╚██╔╝██║██╔══██║╚════██║██╔═██╗ * ███████║███████╗██║ ██║ ╚████╔╝ ██║ ╚═╝ ██║██║ ██║███████║██║ ██╗ * ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ */ if ( ! defined( 'ABSPATH' ) ) { die( 'Kangaroos cannot jump here' ); } class Ai1wm_Database_Mariadb extends Ai1wm_Database_Mysqli { /** * Replace column types * * @param string $input Column value * @return string */ protected function replace_column_types( $input ) { static $search = null; static $replace = null; // Cache column types on first call if ( is_null( $search ) || is_null( $replace ) ) { $search = array(); $replace = array(); // Convert INET4 column type (10.10.0) if ( version_compare( $this->server_version(), '10.10.0', '<' ) ) { $search[] = '/(?server_version(), '10.5.0', '<' ) ) { $search[] = '/(?server_version(), '10.7.0', '<' ) ) { $search[] = '/(?server_version(), '12.3.0', '<' ) ) { $search[] = '/(?server_version(), '11.7.1', '<' ) ) { $search[] = '/(?