Update database.php

This commit is contained in:
Namhyeon Go 2019-12-30 17:15:50 +09:00 committed by GitHub
parent 7ff38c9d1a
commit bb6fe3418d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -748,8 +748,9 @@ if(!check_function_exists("exec_db_table_create")) {
$_suffix = get_value_in_array("suffix", $options, "");
$_tablename = sprintf("%s%s%s", $_prefix, $tablename, $_suffix);
// get index options
$setindex = get_value_in_array("setindex", $options, false);
// check if exists table
$sql = sprintf("describe %s", $_tablename);
if(!exec_db_query($sql)) {