Skip to content

Commit 24af55b

Browse files
committed
Merge branch '3.7.x' into 4.0.x
2 parents 81c9688 + 5b7bd66 commit 24af55b

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,19 +495,22 @@ jobs:
495495
ibm_db2:
496496
image: "icr.io/db2_community/db2:11.5.8.0"
497497
env:
498+
DB2INSTANCE: "db2inst1"
498499
DB2INST1_PASSWORD: "Doctrine2018"
499500
LICENSE: "accept"
500501
DBNAME: "doctrine"
501502

502-
options: "--privileged=true"
503+
options: >-
504+
--health-cmd "su - ${DB2INSTANCE} -c \"db2 -t CONNECT TO ${DBNAME};\""
505+
--health-interval 30s
506+
--health-timeout 10s
507+
--health-retries 5
508+
--privileged
503509
504510
ports:
505511
- "50000:50000"
506512

507513
steps:
508-
- name: "Perform healthcheck from the outside"
509-
run: "docker logs -f ${{ job.services.ibm_db2.id }} | sed '/(*) Setup has completed./ q'"
510-
511514
- name: "Create temporary tablespace"
512515
run: "docker exec ${{ job.services.ibm_db2.id }} su - db2inst1 -c 'db2 -t CONNECT TO doctrine; db2 -t CREATE USER TEMPORARY TABLESPACE doctrine_tbsp PAGESIZE 4 K;'"
513516

tests/Functional/Schema/MySQL/ComparatorTest.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
99
use Doctrine\DBAL\Platforms\AbstractPlatform;
1010
use Doctrine\DBAL\Platforms\MariaDBPlatform;
11+
use Doctrine\DBAL\Platforms\MySQL80Platform;
1112
use Doctrine\DBAL\Schema\AbstractSchemaManager;
1213
use Doctrine\DBAL\Schema\Column;
1314
use Doctrine\DBAL\Schema\Comparator;
@@ -156,6 +157,26 @@ public function testTableAndColumnOptions(array $tableOptions, array $columnOpti
156157
)->isEmpty());
157158
}
158159

160+
public function testSimpleArrayTypeNonChangeNotDetected(): void
161+
{
162+
$table = new Table('comparator_test');
163+
164+
$table->addColumn('simple_array_col', Types::SIMPLE_ARRAY, ['length' => 255]);
165+
$this->dropAndCreateTable($table);
166+
167+
self::assertTrue(ComparatorTestUtils::diffFromActualToDesiredTable(
168+
$this->schemaManager,
169+
$this->comparator,
170+
$table,
171+
)->isEmpty());
172+
173+
self::assertTrue(ComparatorTestUtils::diffFromDesiredToActualTable(
174+
$this->schemaManager,
175+
$this->comparator,
176+
$table,
177+
)->isEmpty());
178+
}
179+
159180
/** @return iterable<string,array{array<string,string>,array<string,string>}> */
160181
public static function tableAndColumnOptionsProvider(): iterable
161182
{
@@ -177,7 +198,7 @@ public static function tableAndColumnOptionsProvider(): iterable
177198

178199
public function testMariaDb1043NativeJsonUpgradeDetected(): void
179200
{
180-
if (! $this->platform instanceof MariaDBPlatform) {
201+
if (! $this->platform instanceof MariaDBPlatform && ! $this->platform instanceof MySQL80Platform) {
181202
self::markTestSkipped();
182203
}
183204

0 commit comments

Comments
 (0)