Skip to content

Commit

Permalink
fix pgsql column order
Browse files Browse the repository at this point in the history
  • Loading branch information
Sairahcaz committed Nov 29, 2023
1 parent 13a914b commit 4354e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resolvers/SchemaRulesResolverPgSql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 4354e83

Please sign in to comment.