You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 494b9e1
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(extension-webview): remove dummy ERD SVG from Export tab
Drop DUMMY_SVG and DummyErdSvg; show an empty-state notice (same style as
the PDF panel) until an ERD has been generated.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/extension-webview/src/tabs/Export.tsx
+22-23Lines changed: 22 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -16,31 +16,14 @@ interface ExportFile {
16
16
isDummy: boolean;
17
17
}
18
18
19
-
// 실제 마이그레이션/ERD가 아직 없을 때 Export 탭이 빈 화면으로 보이지 않도록 쓰는
19
+
// 실제 마이그레이션이 아직 없을 때 Export 탭이 빈 화면으로 보이지 않도록 쓰는
20
20
// 프리뷰용 더미 데이터 (files 배열의 isDummy 플래그로 PREVIEW 배지와 함께 표시됨).
21
-
// 의도적으로 유지 — 제거 대상 아님.
22
21
constDUMMY_SQL_PG=`-- PostgreSQL migration (preview)\n\nCREATE TABLE "users" (\n "id" SERIAL NOT NULL,\n "email" TEXT NOT NULL,\n "name" TEXT,\n "created_at" TIMESTAMP WITHOUT TIME ZONE DEFAULT NOW(),\n CONSTRAINT "pk_users" PRIMARY KEY ("id"),\n CONSTRAINT "uq_users__email" UNIQUE ("email")\n);\n\nCREATE TABLE "posts" (\n "id" SERIAL NOT NULL,\n "title" TEXT NOT NULL,\n "content" TEXT,\n "published" BOOLEAN NOT NULL DEFAULT false,\n "author_id" INTEGER NOT NULL,\n CONSTRAINT "pk_posts" PRIMARY KEY ("id"),\n CONSTRAINT "fk_posts__author_id" FOREIGN KEY ("author_id") REFERENCES "users" ("id")\n);\n\nCREATE INDEX "ix_posts__author_id" ON "posts" ("author_id");`;
23
22
24
23
constDUMMY_SQL_MY=`-- MySQL migration (preview)\n\nCREATE TABLE \`users\` (\n \`id\` INT NOT NULL AUTO_INCREMENT,\n \`email\` VARCHAR(191) NOT NULL,\n \`name\` VARCHAR(191),\n PRIMARY KEY (\`id\`),\n CONSTRAINT \`uq_users__email\` UNIQUE (\`email\`)\n) ENGINE=InnoDB;\n\nCREATE TABLE \`posts\` (\n \`id\` INT NOT NULL AUTO_INCREMENT,\n \`title\` VARCHAR(191) NOT NULL,\n \`author_id\` INT NOT NULL,\n PRIMARY KEY (\`id\`),\n CONSTRAINT \`fk_posts__author_id\` FOREIGN KEY (\`author_id\`) REFERENCES \`users\` (\`id\`)\n) ENGINE=InnoDB;`;
25
24
26
25
constDUMMY_SQL_SQ=`-- SQLite migration (preview)\n\nCREATE TABLE "users" (\n "id" INTEGER NOT NULL,\n "email" TEXT NOT NULL,\n "name" TEXT,\n CONSTRAINT "pk_users" PRIMARY KEY ("id" AUTOINCREMENT),\n CONSTRAINT "uq_users__email" UNIQUE ("email")\n);\n\nCREATE TABLE "posts" (\n "id" INTEGER NOT NULL,\n "title" TEXT NOT NULL,\n "author_id" INTEGER NOT NULL,\n CONSTRAINT "pk_posts" PRIMARY KEY ("id" AUTOINCREMENT),\n CONSTRAINT "fk_posts__author_id" FOREIGN KEY ("author_id") REFERENCES "users" ("id")\n);`;
0 commit comments