summaryrefslogtreecommitdiffstats
path: root/appinfo/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/install.php')
-rw-r--r--appinfo/install.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/appinfo/install.php b/appinfo/install.php
deleted file mode 100644
index 3bf3cde1f..000000000
--- a/appinfo/install.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-namespace OCA\News\AppInfo;
-
-use Exception;
-use OC;
-use Doctrine\DBAL\Platforms\MySqlPlatform;
-
-// fail early when an incorrectly configured mysql instances is found to
-// prevent update errors and data loss
-$charset = OC::$server->getDatabaseConnection()->getParams()['charset'];
-$platform = OC::$server->getDatabaseConnection()->getDatabasePlatform();
-if ($platform instanceof MySqlPlatform && $charset !== 'utf8mb4') {
- $msg = 'App can not be installed because database MySql/MariaDb uses a ' .
- 'non UTF8 charset: ' . $charset .'. Learn more on how to migrate ' .
- 'your database to utf8mb4 after making a backup at ' .
- 'https://dba.stackexchange.com/a/21684';
- throw new Exception($msg);
-} \ No newline at end of file