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

create tao migrations script #2409

Merged
merged 91 commits into from
Jun 22, 2020
Merged

create tao migrations script #2409

merged 91 commits into from
Jun 22, 2020

Conversation

hutnikau
Copy link
Contributor

@hutnikau hutnikau commented Feb 27, 2020

Crete new migration in taoQtiTest extension:

sudo -u www-data php index.php '\oat\tao\scripts\tools\Migrations' -c generate -e taoQtiTest

Show migrations status

sudo -u www-data php index.php '\oat\tao\scripts\tools\Migrations' -c status

Apply migrations

sudo -u www-data php index.php '\oat\tao\scripts\tools\Migrations' -c migrate

Migrations are located in migrations folder of extension root.

See documentation page: https://oat-sa.atlassian.net/wiki/spaces/DEV/pages/279318424/Tao+Updater+Migrations

requires: oat-sa/generis#773

scripts/tools/Migrations.php Outdated Show resolved Hide resolved
scripts/tools/Migrations.php Outdated Show resolved Hide resolved
scripts/tools/Migrations.php Outdated Show resolved Hide resolved
scripts/tools/Migrations.php Outdated Show resolved Hide resolved
scripts/tools/migrations/AbstractMigration.php Outdated Show resolved Hide resolved
migrations/Version20200225120234.php Outdated Show resolved Hide resolved
scripts/tools/Migrations.php Show resolved Hide resolved
Copy link
Contributor

@ks16 ks16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration works during TAO update.
But I think we have to add possibility to rollback executed migrations if something went wrong and also to execute --dry-run.

scripts/tools/migrations/Configuration.php Outdated Show resolved Hide resolved
models/classes/extension/UpdateExtensions.php Outdated Show resolved Hide resolved
@ks16 ks16 self-requested a review March 24, 2020 16:28
Copy link
Contributor

@ks16 ks16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

composer.json Outdated Show resolved Hide resolved
bugalot and others added 28 commits June 2, 2020 13:14
…s300-beta1

Use Doctrine Migrations STABLE
@bugalot bugalot merged commit b9eee5c into develop Jun 22, 2020
@bugalot bugalot deleted the TDR-21/migrations_tool branch June 22, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants