You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot find information on which column type is used if there is no explicit type given in a @Column() decorator. Does a string result in varchar or text? If it's a varchar, with what length? Similar for other types.
Recommended Fix
Add a table explaining which column type is used for every possible TypeScript type (or what happens if no appropriate column type exists).
Are you willing to resolve this issue by submitting a Pull Request?
✖️ Yes, I have the time, and I know how to start.
✖️ Yes, I have the time, but I don't know how to start. I would need guidance.
✖️ No, I don’t have the time, but I can support (using donations) development.
✅ No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.
Reacted by Michał Wadas, Nathaniel Palmer and Elwin Ernst
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
Hi @gioboa, thanks for reopening. My occupation has changed, so I'm not actively working with Type ORM at the moment. I just double checked that the documentation still does not contain this information, so I do think the issue is still relevant, but I won't be digging into this at this time, sorry.
I'll add a focused section to the column types documentation explaining how TypeORM infers database column types from TypeScript property types when type is omitted in @Column(), including a per-driver mapping table (PostgreSQL, MySQL/MariaDB, SQLite, SQL Server) with default lengths where applicable.
@ElwinErnst Hi! Just checking in on PR #12317 for the inferred column types documentation. It's been a while since the last update. Is this still in progress? I'm happy to help if you need any assistance!
Activity
github-actions commentedon Sep 18, 2025
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
SimonCockx commentedon Sep 18, 2025
I believe this is still relevant.
gioboa commentedon Sep 18, 2025
Thanks for the feedback, may I ask you to drop a PR for that?
SimonCockx commentedon Sep 18, 2025
Hi @gioboa, thanks for reopening. My occupation has changed, so I'm not actively working with Type ORM at the moment. I just double checked that the documentation still does not contain this information, so I do think the issue is still relevant, but I won't be digging into this at this time, sorry.
PreAgile commentedon Mar 31, 2026
I can take this.
I'll add a focused section to the column types documentation explaining how TypeORM infers database column types from TypeScript property types when
typeis omitted in@Column(), including a per-driver mapping table (PostgreSQL, MySQL/MariaDB, SQLite, SQL Server) with default lengths where applicable.ElwinErnst commentedon Apr 7, 2026
Opened a PR to address this issue: #12317
It adds documentation explaining how TypeORM infers column types when no explicit type is provided in
@Column(). Happy to adjust if needed 👍LeonxLJX commentedon Sep 1, 2026
I'd like to take this one (
No docs on inferred column types). I'll look into the root cause and follow up with a PR. (claiming via @LeonxLJX)LeonxLJX commentedon Sep 1, 2026
I'd like to take this one (
No docs on inferred column types). I'll look into the root cause and follow up with a PR. (claiming via @LeonxLJX)LeonxLJX commentedon Sep 1, 2026
I'd like to take this one (
No docs on inferred column types). I'll dig into the root cause and follow up with a PR shortly. (claiming via @LeonxLJX)dikshit-n commentedon Sep 16, 2026
@ElwinErnst Hi! Just checking in on PR #12317 for the inferred column types documentation. It's been a while since the last update. Is this still in progress? I'm happy to help if you need any assistance!