mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 09:56:34 +02:00
replace utf8 by utf8mb4 to really manage utf8 in mysql db
This commit is contained in:
parent
b5d1483048
commit
6f8b4c5a19
5 changed files with 13 additions and 13 deletions
|
@ -44,7 +44,7 @@ class Launcher extends AbstractDaemon
|
|||
public function run()
|
||||
{
|
||||
//Create the internal controllers
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'UTF8');
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'utf8mb4');
|
||||
$this->internal_phone = new \controllers\internals\Phone($this->bdd);
|
||||
|
||||
$this->start_sender_daemon();
|
||||
|
|
|
@ -60,7 +60,7 @@ class Phone extends AbstractDaemon
|
|||
|
||||
$this->read_tick += 1;
|
||||
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'UTF8');
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'utf8mb4');
|
||||
|
||||
//Send smss in queue
|
||||
$this->send_smss();
|
||||
|
|
|
@ -94,7 +94,7 @@ class Sender extends AbstractDaemon
|
|||
public function on_start()
|
||||
{
|
||||
$this->logger->info('Starting Sender with pid ' . getmypid());
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'UTF8');
|
||||
$this->bdd = \descartes\Model::_connect(DATABASE_HOST, DATABASE_NAME, DATABASE_USER, DATABASE_PASSWORD, 'utf8mb4');
|
||||
}
|
||||
|
||||
public function on_stop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue