drizzle-team / drizzle-team/drizzle-orm

[BUG]: Migrations without newline at end can fail with SQL Is Empty on RDS Data API

Open
#3,121 5 comments 1 reaction 0 assignees View on GitHub
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

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.