From 4354e8315ae6c0e95641f06e3facd86ed4d8ebb0 Mon Sep 17 00:00:00 2001 From: Zacharias Creutznacher Date: Wed, 29 Nov 2023 21:50:52 +0100 Subject: [PATCH] fix pgsql column order --- src/Resolvers/SchemaRulesResolverPgSql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resolvers/SchemaRulesResolverPgSql.php b/src/Resolvers/SchemaRulesResolverPgSql.php index 02c736e..107bc2c 100644 --- a/src/Resolvers/SchemaRulesResolverPgSql.php +++ b/src/Resolvers/SchemaRulesResolverPgSql.php @@ -24,7 +24,7 @@ protected function getColumnsDefinitionsFromTable() ' SELECT column_name, data_type, character_maximum_length, is_nullable, column_default FROM INFORMATION_SCHEMA.COLUMNS - WHERE table_name = :table', + WHERE table_name = :table ORDER BY ordinal_position', ['table' => $tableName] ))->keyBy('column_name')->toArray();