Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review 2.11 data migration script #2184

Closed
tcompa opened this issue Jan 15, 2025 · 1 comment
Closed

Review 2.11 data migration script #2184

tcompa opened this issue Jan 15, 2025 · 1 comment
Assignees

Comments

@tcompa
Copy link
Collaborator

tcompa commented Jan 15, 2025

$ fractalctl update-db-data
**WARNING**
This command acts directly on database data. If you have any doubt about this, do not run it!

Expected use case:
You have updated fractal-server from some old version to a target version, and now need to fix some database data.
The detected target version is '2.11.0a2' (corresponding to the update-db-data module '2_11_0.py').
Note that the old and target versions MUST be consecutive, that is, you cannot skip an intermediate version.
The list of released versions is available at https://github.com/fractal-analytics-platform/fractal-server/blob/main/CHANGELOG.md.

Do you confirm that the old and target versions are consecutive? (yes/no)
yes
Do you confirm that the target version is 2.11.0a2? (yes/no)
yes
Have you run 'fractalctl set-db' with the target version? (yes/no)
yes
Have you made a backup of your database (e.g. via `pg_dump`)? (yes/no)
yes
Are you sure you want to proceed? (yes/no)
yes
OK, now starting data-migration script

I would expect:

  1. INFO logs being shown (likely through logging.basicConfig(logging.INFO)
  2. A log that says START and a log that says END.
@tcompa tcompa added flexibility Support more workflow-execution use cases and removed flexibility Support more workflow-execution use cases labels Jan 15, 2025
@ychiucco
Copy link
Collaborator

Closed with 9797196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants