mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #30129 from nextcloud/mdb10.6-pipeline
This commit is contained in:
commit
eb3cf6c5ec
4 changed files with 37 additions and 7 deletions
36
.drone.yml
36
.drone.yml
|
|
@ -360,6 +360,42 @@ trigger:
|
|||
- pull_request
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: mariadb10.6-php8.0
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: ghcr.io/nextcloud/continuous-integration-alpine-git:latest
|
||||
commands:
|
||||
- git submodule update --init
|
||||
- name: mariadb10.6-php8.0
|
||||
image: ghcr.io/nextcloud/continuous-integration-php8.0:latest
|
||||
commands:
|
||||
- bash tests/drone-run-php-tests.sh || exit 0
|
||||
- NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mariadb
|
||||
|
||||
services:
|
||||
- name: cache
|
||||
image: ghcr.io/nextcloud/continuous-integration-redis:latest
|
||||
- name: mariadb
|
||||
image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6continuous-integration-mariadb-10.6:10.6
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: owncloud
|
||||
MYSQL_USER: oc_autotest
|
||||
MYSQL_PASSWORD: owncloud
|
||||
MYSQL_DATABASE: oc_autotest
|
||||
tmpfs:
|
||||
- /var/lib/mysql
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- stable*
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: mysql8.0-php7.4
|
||||
|
|
|
|||
|
|
@ -1572,7 +1572,7 @@ $CONFIG = [
|
|||
* Tables will be created with
|
||||
* * character set: utf8mb4
|
||||
* * collation: utf8mb4_bin
|
||||
* * row_format: compressed
|
||||
* * row_format: dynamic
|
||||
*
|
||||
* See:
|
||||
* https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-utf8mb4.html
|
||||
|
|
|
|||
|
|
@ -228,7 +228,6 @@ class ConnectionFactory {
|
|||
$connectionParams['defaultTableOptions'] = [
|
||||
'collate' => 'utf8mb4_bin',
|
||||
'charset' => 'utf8mb4',
|
||||
'row_format' => 'compressed',
|
||||
'tablePrefix' => $connectionParams['tablePrefix']
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,11 +90,6 @@ class Collation implements IRepairStep {
|
|||
}
|
||||
|
||||
$output->info("Change collation for $table ...");
|
||||
if ($characterSet === 'utf8mb4') {
|
||||
// need to set row compression first
|
||||
$query = $this->connection->prepare('ALTER TABLE `' . $table . '` ROW_FORMAT=COMPRESSED;');
|
||||
$query->execute();
|
||||
}
|
||||
$query = $this->connection->prepare('ALTER TABLE `' . $table . '` CONVERT TO CHARACTER SET ' . $characterSet . ' COLLATE ' . $characterSet . '_bin;');
|
||||
try {
|
||||
$query->execute();
|
||||
|
|
|
|||
Loading…
Reference in a new issue