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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: Self-hosted | version-agnostic migrations and auto DB backup #7830

Open
2 tasks done
byawitz opened this issue Mar 15, 2024 · 1 comment
Open
2 tasks done
Labels
enhancement New feature or request product / migrations Fixes and upgrades for the Appwrite Migrations.

Comments

@byawitz
Copy link
Member

byawitz commented Mar 15, 2024

馃敄 Feature description

Adding a few flags to Appwrite migrate CLI runner.

  • --from-version - set the version in which you've upgraded, the migration will start from that one.
  • --backup-db - Dump the current DB into an SQL file before migrating.

When someone is upgrading from version 1.0.0 to version 1.3 for example the command would be

docker exec appwrite migrate --from-version=1.0 --backup-db

The from-version flag would work something like this

flowchart 
    migrate[docker exec appwrite migrate] --> v1[--from-version=1.0] --> V15
    migrate --> v2[--from-version=1.1] --> V16
    migrate --> v3[--from-version=1.2]--> V17    
    migrate --> V18

    V15(V15.php) -.then.-> V16(V16.php)
    V16 -.then.-> V17(V17.php)
    V17 -.then.-> V18(V18.php)
    V18 --> Done

馃帳 Pitch

Easy upgrade while adding a backup for safety.

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@byawitz byawitz changed the title 馃殌 Feature: Self-hosted | Make migrate version agnostic and auto DB backup 馃殌 Feature: Self-hosted | version-agnostic migrations and auto DB backup Mar 15, 2024
@EVDOG4LIFE EVDOG4LIFE added enhancement New feature or request feature product / migrations Fixes and upgrades for the Appwrite Migrations. labels Mar 15, 2024
@EVDOG4LIFE
Copy link
Contributor

Thanks for filing! This can definitely be something we work on improving, I will bring this up with the team to see what can be done. Thanks @byawitz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request product / migrations Fixes and upgrades for the Appwrite Migrations.
Projects
None yet
Development

No branches or pull requests

3 participants