From 4e49f2a655124e50f00b03d60b29af13131bbe9c Mon Sep 17 00:00:00 2001 From: iamwildtuna Date: Sun, 1 Aug 2021 15:35:13 +0300 Subject: [PATCH] Release 0.2.0 --- composer.json | 2 +- src/Platforms/CockroachPlatform.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0e5ef6f..00c13d7 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require": { "php": "^7.2 || ^8.0", "ext-pdo": "*", - "doctrine/dbal": "^2.10" + "doctrine/dbal": "^2.10 || ^3.0" }, "autoload": { "psr-0": { diff --git a/src/Platforms/CockroachPlatform.php b/src/Platforms/CockroachPlatform.php index 0d13818..148e0a6 100644 --- a/src/Platforms/CockroachPlatform.php +++ b/src/Platforms/CockroachPlatform.php @@ -60,7 +60,9 @@ public function getIntegerTypeDeclarationSQL(array $column): string } public function getAdvancedForeignKeyOptionsSQL(ForeignKeyConstraint $foreignKey): string - {$query = ''; + { + // Waiting for resolved https://github.com/cockroachdb/cockroach/issues/31632 + $query = ''; if ($foreignKey->hasOption('match')) { $query .= ' MATCH ' . $foreignKey->getOption('match');