feat: support array column type option#1653
Merged
Merged
Conversation
Collaborator
|
I made a manual review and it look very promising 👍 |
Shinigami92
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for defining PostgreSQL array column types through the column options API.
Supported examples:
Existing string-based type declarations such as:
continue to work unchanged.
Scope
This PR only supports defining array column types through column options.
It does not implement altering existing non-array columns into array columns, as that was discussed as a separate feature in #1524.
This change intentionally does not add validation for numeric array dimensions. Numeric values are passed through to PostgreSQL as
ARRAY[n], matching the existing SQL-generation style.Tests
array: truearray: falsekeeps existing non-array behavioraddColumnsandcreateTablepathsRan:
pnpm run buildpnpm run ts-checkpnpm run lintpnpm run format:checkpnpm run test:unitCloses #1524