Skip to content

Commit 4a40f81

Browse files
authored
Fixed bug that connect_timeout cannot work for pgsql-swoole database. (#7402)
1 parent bafe742 commit 4a40f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/DatabaseSQLiteSchemaGrammarTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function testAddingForeignKey()
206206

207207
// because string return type in Hyperf\Database\Schema\Grammars\Grammar::compileForeign is a must
208208
// it has a redundancy statement
209-
$this->assertCount(2, $statements);
209+
$this->assertCount(1, $statements);
210210
$this->assertSame('create table "users" ("foo" varchar not null, "order_id" varchar not null, foreign key("order_id") references "orders"("id"), primary key ("foo"))', $statements[0]);
211211
}
212212

@@ -701,7 +701,7 @@ public function testAddingForeignUuid()
701701
$this->assertInstanceOf(ForeignIdColumnDefinition::class, $foreignUuid);
702702
// because string return type in Hyperf\Database\Schema\Grammars\Grammar::compileForeign is a must
703703
// it has a redundancy statement
704-
$this->assertSame(9, count($statements));
704+
$this->assertSame(5, count($statements));
705705
$this->assertSame('alter table "users" add column "foo" varchar not null', $statements[0]);
706706
$this->assertSame('alter table "users" add column "company_id" varchar not null', $statements[1]);
707707
$this->assertSame('alter table "users" add column "laravel_idea_id" varchar not null', $statements[2]);

0 commit comments

Comments
 (0)