drawdb-io / drawdb

Free, simple, and intuitive online database diagram editor and SQL generator.
https://drawdb.app
GNU Affero General Public License v3.0
22.7k stars 1.58k forks source link

Fix multi line field comments in SQL export. #206

Closed nktfh100 closed 3 months ago

nktfh100 commented 3 months ago

Currently field comments with multiple lines are exported like this:

CREATE TABLE "User" (
    "id" INTEGER NOT NULL UNIQUE,
    -- line1
line2
line3
    "name" VARCHAR,
    PRIMARY KEY("id")
);

This PR fixes it so that multiple-line comments export correctly:

CREATE TABLE "User" (
    "id" INTEGER NOT NULL UNIQUE,
    -- line1
    -- line2
    -- line3
    "name" VARCHAR,
    PRIMARY KEY("id")
);
vercel[bot] commented 3 months ago

@nktfh100 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawdb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2024 9:27am