drizzle-team / drizzle-team/drizzle-orm

Add Drizzle-kit db push --force reset command combined with seed integration

Open
#3,370 6 comments 9 reactions 0 assignees View on GitHub
drizzle/kit enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

Context:

In a previous project where I used Prisma I found myself clearing the database and seeding it again to quickly continue developing with a clean slate. For example easily retriggering OAuth flows, seeing diffrences between data that is or is not available etc.

The issue that explains my flow even more: https://github.com/prisma/prisma/issues/11261

Feature suggestion:

Add drizzle-kit db push --force-reset together with the seed functionality like prisma has.
It would be nice if it could work with multiple adapters like turso/planetscale/neon etc, but i'm not sure how easily this can be done.

Two discussions I had in the discord for more context and solutions that can be used now:

Seeding: https://discord.com/channels/1043890932593987624/1141321911155036232

DB clearing: https://discord.com/channels/1043890932593987624/1130802621750448160

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.