From eecccee1d435648457f92d986cc31a787267993f Mon Sep 17 00:00:00 2001 From: adrianpaiva1 Date: Wed, 30 Oct 2024 17:16:46 -0400 Subject: [PATCH 1/2] add int --- src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php b/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php index 0cf81ad..56d0889 100644 --- a/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php +++ b/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php @@ -106,7 +106,7 @@ public function compilePivotColumnNullValue(string $typeName, string $type): str } $cast = match ($typeName) { - 'bigint', 'boolean', 'integer', 'smallint', 'tinyint' => 'signed', + 'bigint', 'boolean', 'integer', 'int', 'smallint', 'tinyint' => 'signed', 'decimal' => "decimal($precision, $scale)", 'timestamp' => 'datetime', 'varchar' => 'char(65535)', From 6e55ff37d63847d43c96052eed7dd621dd7c36d7 Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Sat, 2 Nov 2024 10:18:50 +0100 Subject: [PATCH 2/2] Remove incorrect type --- src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php b/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php index 56d0889..4a5435d 100644 --- a/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php +++ b/src/Query/Grammars/Traits/CompilesMySqlAdjacencyLists.php @@ -106,7 +106,7 @@ public function compilePivotColumnNullValue(string $typeName, string $type): str } $cast = match ($typeName) { - 'bigint', 'boolean', 'integer', 'int', 'smallint', 'tinyint' => 'signed', + 'bigint', 'boolean', 'int', 'smallint', 'tinyint' => 'signed', 'decimal' => "decimal($precision, $scale)", 'timestamp' => 'datetime', 'varchar' => 'char(65535)',