Skip to content
This repository was archived by the owner on Feb 3, 2019. It is now read-only.

Commit be2abd0

Browse files
committedApr 12, 2018
Convert table to utf8mb4 instead of utf8
1 parent d16d55f commit be2abd0

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed
 

‎Plugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getPluginAuthor()
3636

3737
public function getPluginVersion()
3838
{
39-
return '1.0.0';
39+
return '1.0.1';
4040
}
4141

4242
public function getPluginDescription()

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ For example, it could be used to publish announcements or schedule maintenance.
99
Requirements
1010
------------
1111

12-
- PHP >= 5.4
13-
- Kanboard >= 1.1.0
12+
- PHP >= 5.6
13+
- Kanboard >= 1.2.3
1414

1515
Installation
1616
------------

‎Schema/Mysql.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22

33
namespace Kanboard\Plugin\Broadcast\Schema;
44

5-
const VERSION = 1;
5+
use PDO;
66

7-
function version_1($pdo)
7+
const VERSION = 2;
8+
9+
function version_2(PDO $pdo)
10+
{
11+
$pdo->exec('ALTER TABLE `broadcast_message` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci');
12+
}
13+
14+
function version_1(PDO $pdo)
815
{
916
$pdo->exec('CREATE TABLE IF NOT EXISTS broadcast_message (
1017
message TEXT NOT NULL,

0 commit comments

Comments
 (0)