Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
davodsaraei committed Jun 2, 2021
1 parent 1fa344d commit ade3605
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions classes/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public static function sqlString()
{
global $wpdb;

$table_name = $wpdb->prefix.self::$table;
$charset_collate = $wpdb->get_charset_collate();
$table_name = $wpdb->prefix.self::$table;

$sql = "CREATE TABLE IF NOT EXISTS {$table_name} (
id bigint(20) NOT NULL AUTO_INCREMENT,
Expand All @@ -42,7 +41,7 @@ public static function sqlString()
value text DEFAULT '' NOT NULL,
PRIMARY KEY id (id),
UNIQUE (name)
) {$charset_collate};"
);"
;

return $sql;
Expand Down

0 comments on commit ade3605

Please sign in to comment.