Skip to content

Commit 4354e83

Browse files
committed
fix pgsql column order
1 parent 13a914b commit 4354e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resolvers/SchemaRulesResolverPgSql.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function getColumnsDefinitionsFromTable()
2424
'
2525
SELECT column_name, data_type, character_maximum_length, is_nullable, column_default
2626
FROM INFORMATION_SCHEMA.COLUMNS
27-
WHERE table_name = :table',
27+
WHERE table_name = :table ORDER BY ordinal_position',
2828
['table' => $tableName]
2929
))->keyBy('column_name')->toArray();
3030

0 commit comments

Comments
 (0)