Skip to content

feat(cli): Studio now warns when SQLite file did not exist and was created.#28672

Merged
igalklebanov merged 2 commits intomainfrom
studio-warn-file-created
Nov 24, 2025
Merged

feat(cli): Studio now warns when SQLite file did not exist and was created.#28672
igalklebanov merged 2 commits intomainfrom
studio-warn-file-created

Conversation

@igalklebanov
Copy link
Copy Markdown
Contributor

@igalklebanov igalklebanov commented Nov 23, 2025

Hey 👋

closes PTL-559.

This PR checks for the existence of the target SQLite file and if it didn't exist before, it prints a warning. This is to let users know that they might've provided a wrong path.

Copilot AI review requested due to automatic review settings November 23, 2025 00:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a warning message when Studio creates a new SQLite database file that didn't previously exist, helping users identify potential path configuration errors.

Key Changes:

  • Added file existence check for SQLite database files before connection
  • Displays a warning when a new database file is created

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 23, 2025

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.23 KB (0%)
packages/client/runtime/index-browser.d.ts 3.28 KB (0%)
packages/cli/build/index.js 2.51 MB (+0.01% 🔺)
packages/client/prisma-client-0.0.0.tgz 10.22 MB (0%)
packages/cli/prisma-0.0.0.tgz 6.71 MB (+0.01% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 804.7 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 859.16 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 852.02 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 803.84 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 787.59 KB (0%)

@igalklebanov igalklebanov added this to the 7.0.1 milestone Nov 23, 2025
@igalklebanov igalklebanov force-pushed the studio-warn-file-created branch from 5b93203 to bf93383 Compare November 23, 2025 11:53
FGoessler
FGoessler previously approved these changes Nov 24, 2025
Update packages/cli/src/Studio.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
...

...
@igalklebanov igalklebanov force-pushed the studio-warn-file-created branch from bf93383 to dcdf6c6 Compare November 24, 2025 08:42
@igalklebanov igalklebanov merged commit 2dfd2be into main Nov 24, 2025
168 checks passed
@igalklebanov igalklebanov deleted the studio-warn-file-created branch November 24, 2025 09:10
jkomyno pushed a commit that referenced this pull request Nov 25, 2025
…eated. (#28672)

Hey 👋

This PR checks for the existence of the target SQLite file and if it
didn't exist before, it prints a warning. This is to let users know that
they might've provided a wrong path.
jkomyno pushed a commit that referenced this pull request Nov 25, 2025
…eated. (#28672)

Hey 👋

This PR checks for the existence of the target SQLite file and if it
didn't exist before, it prints a warning. This is to let users know that
they might've provided a wrong path.
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.

3 participants