Skip to content

Database scrubbing #2994

Answered by CodesInChaos
kpdemetriou asked this question in Q&A
Oct 1, 2021 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

So far, I worked around this by connecting to a different database, dropping and re-creating the target database, and then connecting the the target database.


The following should work similar to what you're doing:

START MIGRATION TO {}
POPULATE MIGRATION;
COMMIT MIGRATION;

But last time I tried that (about a year ago), this often failed due to EdgeDB bugs, which should be fixed nowadays.

However manual migrations like that (or your code) might mess with edgedb cli's built in migration handling.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@elprans
Comment options

@CodesInChaos
Comment options

@kpdemetriou
Comment options

@CodesInChaos
Comment options

@kpdemetriou
Comment options

Answer selected by kpdemetriou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants