Best practices for resetting DB?

135 views
Skip to first unread message

Strika

unread,
Dec 9, 2015, 10:49:14 AM12/9/15
to Evennia
What's the best way to go about deleting and reinstantiating the db?

To date I've just been deleting the db and re-running "evennia migrate" but re-creating the admin account gets old, so I was wondering if there was a one-liner I could run in-game to delete everything but the admin player and limbo.

Thanks!

Griatch Art

unread,
Dec 9, 2015, 11:22:50 AM12/9/15
to Evennia
Deleting the evennia.db3 database file is the way to do it. A simple trick I use myself is to simply make a copy of your evennia.db3 file once you have migrated, created your admin account and logged in once. Just copy it to evennia.db3_clean or something. This will now only contain the minimal admin account and basic setup.

Then, when you want to reset, just stop evennia and copy your clean file back over your old evennia.db3. Ta-daa!
.
Griatch

Strika

unread,
Dec 9, 2015, 11:26:40 AM12/9/15
to Evennia
Ha, awesome. Thanks!
Reply all
Reply to author
Forward
0 new messages