ckolderup / postmarks

a single-user bookmarking website designed to live on the Fediverse
https://postmarks.glitch.me
MIT License
456 stars 38 forks source link

Migrate activitypub.db to application.db #136

Open johnholdun opened 9 months ago

johnholdun commented 9 months ago

Depends on #135

This is step two in a multi-step process to migrate all application data and configuration into one database. As described in #6 by @ckolderup :

Encode the messages and permissions tables from activitypub.db as schemas in application.db using its migration functionality. Make the setup process detect an existing activitypub.db file and copy all data over from it to the new tables in application.db. Update the code to read from application.db for this data. Notify the owner on startup that they can remove activitypub.db.