The BadgeFed Project<p>We are VERY excited about all the features landing in the next release! However, we’re also introducing one big breaking change—and that’s the purpose of this post. WE ENCOURAGE EVERYONE USING BADGEFED TO CREATE A DATABASE BACKUP BEFORE UPGRADING.</p>
<p>(GO, do it now, we will wait for you and then continue reading this post.)</p>
<p>Don’t worry: if you forget, chances are you won’t lose data, but recovery may be trickier. If you can, please back up first.</p>
<p><strong>Summary (read before upgrading)</strong></p>
<ul>
<li>Database filenames now match your domain, for example: <code>mydomain.db</code>. The previous single default filename is no longer used by default.</li>
<li>Back up your existing SQLite file NOW. You can also download a backup from the admin portal: Admin > Database > Download Backup.</li>
<li>After upgrading to 0.1.1, the app uses a per-domain database. Use the import utility to migrate from your backup—or copy your backup into the data directory and rename it to the domain-based filename.</li>
<li>Prefer one shared database? Set the environment variable <code>SQLITE_DB_PATH</code> to your desired (or current) filename (for example, <code>badgefed.db</code>).</li>
</ul>
<p><strong>If you already upgraded without preparing</strong></p>
<ul>
<li>Your previous database was not replaced or deleted. Locate your old <code>badgefed.db</code> (or backup), copy it to the data directory, and rename it to the new domain-based filename.</li>
</ul>
<p>The 0.1.1 release and full release notes are coming soon!</p>
<p>Badge up!</p>
<br> <p>You can read the article "BadgeFed 0.1.1 — Breaking change: per-domain database filenames" by <a href="https://hachyderm.io/users/mapache" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mapache</span></a> <a href="https://badgefed.vocalcat.com/post/07-breaking-changes/" rel="nofollow noopener noreferrer" target="_blank">here</a> as well.</p> <a href="https://badgefed.vocalcat.com/tags/badgefed" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>badgefed</span></a> <a href="https://badgefed.vocalcat.com/tags/fediverse" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fediverse</span></a> <a href="https://badgefed.vocalcat.com/tags/openbadges" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>openbadges</span></a> <a href="https://badgefed.vocalcat.com/tags/update" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>update</span></a> <a href="https://badgefed.vocalcat.com/tags/activitypub" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>activitypub</span></a> <a href="https://badgefed.vocalcat.com/tags/sqlite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlite</span></a> <a href="https://badgefed.vocalcat.com/tags/federation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>federation</span></a>