Skip to content

[BUG]:Beta upgrade "No snapshot was found" #5591

@traviswimer

Description

@traviswimer

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

1.0.0-beta.20

What version of drizzle-kit are you using?

1.0.0-beta.20

Other packages

No response

Describe the Bug

I am trying to upgrade to the latest beta release (1.0.0-beta.20) by following the v1 migration guide, but when I run drizzle-kit up I get the following message:

No config path provided, using default 'drizzle.config.ts'
Reading config file '/Users/someusername/blah/blah/blah/drizzle.config.ts'
No snapshot was found

My current directory structure looks like this:

drizzle
├── 0000_do_something.sql
├── 0001_do_more.sql
├── 0002_something_else.sql
└── meta
    ├── _journal.json
    ├── 0001_snapshot.json
    └── 0002_snapshot.json

I tried installing 1.0.0-beta.1 to see if that would work, and it did successfully update the values in my snapshot files, but it seems this version is before the directory structure changes (removing meta, etc). After these changes were made, I tried installing 1.0.0-beta.20 again, but I still get the No snapshot was found message.

My assumption would be that the latest beta release of drizzle-kit up is meant to work at least back to the latest stable release, so I'm not sure why an earlier beta version would work, but not the latest.

Am I misunderstanding something, or is this a bug/incorrect documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions