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: Running migrations on local D1 performs backup on production database #2336

Closed
drewschrauf opened this issue Dec 6, 2022 · 2 comments · Fixed by #2341 or #2343
Closed

🐛 BUG: Running migrations on local D1 performs backup on production database #2336

drewschrauf opened this issue Dec 6, 2022 · 2 comments · Fixed by #2341 or #2343
Labels
bug Something that isn't working d1 Relating to D1

Comments

@drewschrauf
Copy link

What version of Wrangler are you using?

2.5.0

What operating system are you using?

Linux

Describe the Bug

When applying migrations to a D1 database a backup is performed. When migrating a local D1 database with wrangler d1 migrations apply my-cool-database --local the backup is not performed on the local database, but on the production database. This requires all developers in a team to be authed against the production account, even if they're otherwise developing against local resources.

@drewschrauf drewschrauf added the bug Something that isn't working label Dec 6, 2022
@rozenmd rozenmd added the d1 Relating to D1 label Dec 6, 2022
@rozenmd
Copy link
Contributor

rozenmd commented Dec 6, 2022

Hey @drewschrauf sorry about that, this is definitely unintentional - will fix shortly

@drewschrauf
Copy link
Author

So quick! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working d1 Relating to D1
Projects
None yet
2 participants