drizzle-team / drizzle-team/drizzle-orm

[BUG]: drizzle kit pull can not generate Mysql POINT type

Open
#4,606 0 comments 1 reaction 0 assignees View on GitHub
bug enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

0.44.2

### What version of `drizzle-kit` are you using?

0.31.1

### Other packages

_No response_

### Describe the Bug

Drizzle show warning and missing field inside type

```
export const locationEntities = mysqlTable("Location", {
id: int({ unsigned: true }).autoincrement().notNull(),
// Warning: Can't parse point from database
// pointType: point("coordinates").notNull(),
address: varchar({ length: 191 }),
},
```

SQL migration is fine:
```
CREATE TABLE `Location` (
`id` int unsigned AUTO_INCREMENT NOT NULL,
`coordinates` point NOT NULL,
`address` varchar(191),
CONSTRAINT `LocationEntities_id` PRIMARY KEY(`id`)
);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.