Replies: 1 comment 7 replies
-
|
Thank you for taking the time to give it a go and provide feedback! I really appreciate it.
Good catch!
I understand how convenient this is, however I would be basically building out a more complex feature-set into a tool meant to be a one-off usage for folks using Stump prior to this upcoming release. In this instance I'll most likely keep it as-is since I unfortunately have limited time I'd rather put towards bug fixes etc, but would love to see contributions if people feel strongly towards having that.
You should not make any edits to the script when you are using the built-in migration tool, Stump will look for the placeholder value and replace it with whatever you input into the tool. In fact, editing the path would cause the tool to not function. I'll also clarify the need to edit the script only when not using the tool I added for convenience, but hopefully the comments, warnings, and placeholder values used throughout the script itself is enough to tell folks who are inclined to use the script directly what to do, e.g.: -- 1. open the newly migrated database in your preferred SQLite client, I use TablePlus but it doesn't matter. You may also use the CLI e.g. sqlite3 stump.db < resolve-missing-data.sql
-- you must use absolute paths to the databases, replace with your path
ATTACH DATABASE '/replace/with/full/path/to/stump-before-migration.db' as 'backup';
I'll clarify some of the language used in the prompts, but to answer some of your other questions in this section:
Yes, and really that is the same to me as:
It is just asking for the database will all your existing data inside it. It does not write or delete any data from that database, only the one you've told it is the new database. However if you're worried about potential data loss you can use a backup of the backup to the nth degree, so long as it has the data you want to be migrated. I've pushed a few small changes already to breaking/docs if you'd like to take a look. I'll adjust the prompts in the tool later today, as well |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
Since I've seen you merged the migration documentation from old build to the sea-orm version I assumed the migration itself should be in a workable state - so I decided to give it a try.
While the migration itself completed succesfuly (I didn't test it deeply so to say yet), the migration prompts / documentation are kind of rough :) so I will try to point out few things that you will hopefuly find helpful:
backfill.sqlscript; the documentation has no mention of this at all, but I didfindit incrates/migrations, so I copied it to a docker accessible location.Now, I don't know how you want to provide this sql script in relase, but it would be nice if the migration command would first attempt to look for the file in current directory (for binary release people), then in
/config(for lazy people using docker that will just toss it to a directory they should already have mounted), and if not found, only ask then for it.After the succesful execution to not leave unneded artifacts laying around a prompt to remove the file would be nice.
backfill.sqlfile to change the path to the old database; it should either (preferably) ask in the command line about the location (you would need to check for writeability of the file beforehand I guess) or it should be mentioned that such an edit is needed beforehand (and that it needs to be from a docker's PoV if used in such a situation).backup database; it is unclear what that means:backfill.sqlfile (which, by the way, I only opened because I was curious what it does, but not everybody is)With this I want to pass to you that the information that the
backupname should be changed to something else to lessen the confusion; an example would be:Enter the path to the new, empty database created by Stump to migrate to:(and, if you follow with # 2,Enter the path to the old database filled with your data to migrate from:would be for that case).Beta Was this translation helpful? Give feedback.
All reactions