Skip to content

[drizzle-kit]: ensure statement breakpoints are on new line#3538

Open
mbtools wants to merge 6 commits into
drizzle-team:mainfrom
mbtools:format-breakpoints
Open

[drizzle-kit]: ensure statement breakpoints are on new line#3538
mbtools wants to merge 6 commits into
drizzle-team:mainfrom
mbtools:format-breakpoints

Conversation

@mbtools

@mbtools mbtools commented Nov 12, 2024

Copy link
Copy Markdown

drizzle-kit migrate

Depending on how BREAKPOINT is used in the generated SQL, the text might appear at the end of the line.

This fix ensures that the text is always on a new line without creating any empty lines.

# before
CREATE TYPE "public"."permissions" AS ENUM('r', 'w');--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "local_packages" (
	"id" serial PRIMARY KEY NOT NULL,
...
# after
CREATE TYPE "public"."permissions" AS ENUM('r', 'w');
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "local_packages" (
	"id" serial PRIMARY KEY NOT NULL,
...

Depending on how `BREAKPOINT` is used in the generate SQL, the text might appear at the end of the line.

This fix ensures that the text is always on a new line.
@mbtools

mbtools commented Jun 6, 2026

Copy link
Copy Markdown
Author

Tested with 1.0.0-rc.3

Still relevant 😉 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant