Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folder needs to exist for sqlitefile to be created #8670

Closed
AlphaMoonbaseBerlin opened this issue Oct 13, 2024 · 1 comment
Closed

folder needs to exist for sqlitefile to be created #8670

AlphaMoonbaseBerlin opened this issue Oct 13, 2024 · 1 comment

Comments

@AlphaMoonbaseBerlin
Copy link

Link to reproduction

No response

Environment Info

Windows,
NPM

Describe the Bug

When running npx create-payload-app@beta and passing a path to the .db-file that contains a subfolder, the subfolder needs to exist for payload to create the file on init.

Reproduction Steps

Run npx create-payload-app@beta
Select SQLite as the database.
Pass ./db/dbfile.db as the path fo the file.
Opening localhost:3000/admin will crash as there is no connection to the db possible as the file does not exist.

Adapters and Plugins

No response

@AlphaMoonbaseBerlin AlphaMoonbaseBerlin added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Oct 13, 2024
@r1tsuu
Copy link
Member

r1tsuu commented Oct 18, 2024

We're simply relying on how the underlying package for SQLite works and it doesn't create a folder automatically, therefore it's not a bug with Payload.

However, it may be a useful feature to have in the future, I'm converting this to a discussion.

@r1tsuu r1tsuu closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@payloadcms payloadcms locked and limited conversation to collaborators Oct 18, 2024
@r1tsuu r1tsuu converted this issue into discussion #8771 Oct 18, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Oct 18, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants