drizzle-team / drizzle-team/drizzle-orm
[BUG]: Migrations without newline at end can fail with SQL Is Empty on RDS Data API
Open
bug
driver/aws-data-api
drizzle/kit
priority
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### What version of `drizzle-orm` are you using?
0.33.0
### What version of `drizzle-kit` are you using?
0.24.2
### Describe the Bug
Migrations with no newline at the end fail on RDS Data API with "SQL Is Empty" error.
Add the newline and the problem goes away.
### Expected behavior
Migrations to run as they do on a direct postgres connection.
### Environment & setup
MacOS 15.0.1 with NodeJs 20
Contributor guide
Assessment
This issue has not been assessed yet.