public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Install or upgrade a table for this plugin.
 *
 * @since 1.0.0
 *
 * @param string $tableName The name of the table to upgrade/install.
 * @param string $SQL The core SQL to create or upgrade the table
 * @param string $upgradeTables If true, we're upgrading to a new level of database tables.
 */
Install or upgrade a table for this plugin.

@param string $tableName The name of the table to upgrade/install.
@param string $SQL The core SQL to create or upgrade the table
@param string $upgradeTables If true, we're upgrading to a new level of database tables.
Install or upgrade a table for this plugin . @param string $tableName The name of the table to upgrade / install . @param string $SQL The core SQL to create or upgrade the table @param string $upgradeTables If true we ' re upgrading to a new level of database tables .
function WPCW_database_installTable( $tableName, $SQL, $upgradeTables ) {
	global $wpdb;
	$tableExists = ( $wpdb->get_var( "SHOW TABLES LIKE '$tableName'" ) == $tableName );
	if ( ! $tableExists || $upgradeTables ) {
		require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
		dbDelta( $SQL );
	}
}
function WPCW_database_installTable ( $ tableName , $ SQL , $ upgradeTables ) { global $ wpdb ; $ tableExists = ( $ wpdb -> get_var ( " SHOW TABLES LIKE ' $ tableName ' " ) == $ tableName ) ; if ( ! $ tableExists || $ upgradeTables ) { require_once ( ABSPATH . 'wp-admin/includes/upgrade.php' ) ; dbDelta ( $ SQL ) ; } }
Install or upgrade a table for this plugin.
Install or upgrade a table for this plugin .
// Determine if the table exists or not. // Table doesn't exist or needs upgrading