Skip to content
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

Bug when drizzle generate command after create project #377

Open
ikrom opened this issue Dec 26, 2024 · 1 comment
Open

Bug when drizzle generate command after create project #377

ikrom opened this issue Dec 26, 2024 · 1 comment
Labels
enhancement New feature or request pkg:add sv add

Comments

@ikrom
Copy link

ikrom commented Dec 26, 2024

Describe the bug

There is an error when I want to push my drizzle schema to database.

Solution
After create project, it should be automatically to generate command db:generate in package.json, so user can generate, migrate the schema to database

Reproduction

Warning '@neondatabase/serverless' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket
[⣷] applying migrations...Error: Can't find meta/_journal.json file

Logs

No response

System Info

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M3
    Memory: 140.92 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
Binaries:
    Node: 22.11.0 - /usr/local/bin/node
    npm: 10.9.0 - /usr/local/bin/npm
    pnpm: 9.15.0 - /opt/homebrew/bin/pnpm
    bun: 1.1.38 - ~/.bun/bin/bun
Browsers:
    Chrome: 131.0.6778.205
    Safari: 17.5
npmPackages:
    @sveltejs/adapter-vercel: ^5.5.0 => 5.5.2 
    @sveltejs/kit: ^2.0.0 => 2.15.0 
    @sveltejs/vite-plugin-svelte: ^4.0.0 => 4.0.4 
    svelte: ^5.0.0 => 5.16.0 
    vite: ^5.4.11 => 5.4.11

Severity

annoyance

Additional Information

No response

@Conduitry Conduitry transferred this issue from sveltejs/kit Dec 26, 2024
@manuel3108
Copy link
Member

I'm able to reproduce this. Although the proposed solution will not work in this case, as we cannot magically generate a valid URL that's specific to your NEON / Vercel / Supabase account.
What we could do though, would be to imrpove the next steps section, in case Neon is selected. Currently:

◇  Next steps ─────────────────────────────────────────────────────────╮
│                                                                      │
│  - You will need to set DATABASE_URL in your production environment  │
│  - Run pnpm run db:push to update your database schema               │
│                                                                      │
├──────────────────────────────────────────────────────────────────────╯

@manuel3108 manuel3108 added enhancement New feature or request pkg:add sv add labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pkg:add sv add
Projects
None yet
Development

No branches or pull requests

2 participants