Skip to content

Commit

Permalink
Add Database options charset, collate and version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriBouteille committed Mar 10, 2024
1 parent 3737340 commit 5feb96e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Orm/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public function __construct()
$this->config = [
'connection_name' => 'wp-eloquent-mysql2',
'name' => defined('DB_NAME') ? DB_NAME : '',
'charset' => $wpdb->charset,
'collate' => $wpdb->collate,
'version' => $wpdb->db_version(),
];

$this->tablePrefix = $wpdb->prefix;
Expand Down

0 comments on commit 5feb96e

Please sign in to comment.