This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:dkdeploy/dkdeploy.github.io into…
… develop
- Loading branch information
Showing
8 changed files
with
224 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ ul.menu li.active { | |
} | ||
#toc2select { | ||
border-radius: 3px; | ||
font-size: 13px; | ||
} | ||
|
||
#content { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,44 @@ set :migrations_default_arguments, ['--no-interaction'] | |
|
||
### Usage | ||
|
||
{% highlight shell %} | ||
{% highlight shell-session %} | ||
$ cap dev db:migrations:generate | ||
{% endhighlight %} | ||
|
||
### Output | ||
|
||
{% highlight shell %} | ||
TODO | ||
{% highlight shell-session %} | ||
00:00 db:migrations:copy_doctrine_to_server | ||
./vendor/doctrine-migrations.phar found. | ||
Removing old migrations. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations | ||
✔ 01 [email protected] 0.593s | ||
Creating directories for migrations. | ||
02 mkdir -p /var/www/dkdeploy/shared/migrations/classes | ||
✔ 02 [email protected] 0.361s | ||
Copying doctrine-migrations.phar to /var/www/dkdeploy/shared/migrations directory. | ||
Uploading ./vendor/doctrine-migrations.phar 10.75% | ||
Uploading ./vendor/doctrine-migrations.phar 20.3% | ||
Uploading ./vendor/doctrine-migrations.phar 31.04% | ||
Uploading ./vendor/doctrine-migrations.phar 40.6% | ||
Uploading ./vendor/doctrine-migrations.phar 50.15% | ||
Uploading ./vendor/doctrine-migrations.phar 60.9% | ||
Uploading ./vendor/doctrine-migrations.phar 70.45% | ||
Uploading ./vendor/doctrine-migrations.phar 81.19% | ||
Uploading ./vendor/doctrine-migrations.phar 90.75% | ||
Uploading ./vendor/doctrine-migrations.phar 100.0% | ||
Copying db-configuration.php to /var/www/dkdeploy/shared/migrations. | ||
Downloading db_settings.dev.yaml 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/cli-config.php 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/migrations.yml 100.0% | ||
00:01 db:migrations:generate | ||
Generating new migration. | ||
01 mkdir -p /var/www/dkdeploy/shared/migrations | ||
✔ 01 [email protected] 0.008s | ||
02 /usr/bin/php doctrine-migrations.phar migrations:generate --no-interaction | ||
02 Generated new migration class to "/var/www/dkdeploy/shared/migrations/classes/Version20170419091311.php" | ||
✔ 02 [email protected] 0.055s | ||
Downloading config/migrations/classes/Version20170419091311.php 100.0% | ||
{% endhighlight %} | ||
|
||
### Additional information | ||
|
@@ -37,14 +67,59 @@ Show migration status | |
|
||
### Usage | ||
|
||
{% highlight shell %} | ||
{% highlight shell-session %} | ||
$ cap dev db:migrations:status | ||
{% endhighlight %} | ||
|
||
### Output | ||
|
||
{% highlight shell %} | ||
TODO | ||
{% highlight shell-session %} | ||
00:00 db:migrations:copy_doctrine_to_server | ||
./vendor/doctrine-migrations.phar found. | ||
Removing old migrations. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations | ||
✔ 01 [email protected] 0.584s | ||
Creating directories for migrations. | ||
02 mkdir -p /var/www/dkdeploy/shared/migrations/classes | ||
✔ 02 [email protected] 0.357s | ||
Copying doctrine-migrations.phar to /var/www/dkdeploy/shared/migrations directory. | ||
Uploading ./vendor/doctrine-migrations.phar 10.75% | ||
Uploading ./vendor/doctrine-migrations.phar 20.3% | ||
Uploading ./vendor/doctrine-migrations.phar 31.04% | ||
Uploading ./vendor/doctrine-migrations.phar 40.6% | ||
Uploading ./vendor/doctrine-migrations.phar 50.15% | ||
Uploading ./vendor/doctrine-migrations.phar 60.9% | ||
Uploading ./vendor/doctrine-migrations.phar 70.45% | ||
Uploading ./vendor/doctrine-migrations.phar 81.19% | ||
Uploading ./vendor/doctrine-migrations.phar 90.75% | ||
Uploading ./vendor/doctrine-migrations.phar 100.0% | ||
Copying db-configuration.php to /var/www/dkdeploy/shared/migrations. | ||
Downloading db_settings.dev.yaml 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/cli-config.php 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/migrations.yml 100.0% | ||
00:01 db:migrations:copy_migrations_to_server | ||
Uploading migrations to /var/www/dkdeploy/shared/migrations/classes. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations/classes | ||
✔ 01 [email protected] 0.006s | ||
00:01 db:migrations:status | ||
Getting status of migrations. | ||
01 /usr/bin/php doctrine-migrations.phar migrations:status | ||
01 | ||
01 == Configuration | ||
01 | ||
01 >> Name: Doctrine TYPO3 Migrations | ||
01 >> Database Driver: pdo_mysql | ||
01 >> Database Name: dkdeploy_php | ||
01 >> Configuration Source: /var/www/dkdeploy/shared/migrations/migrations.yml | ||
01 >> Version Table Name: doctrine_migrations | ||
01 >> Migrations Namespace: DoctrineMigrations | ||
01 >> Migrations Directory: /var/www/dkdeploy/shared/migrations/classes | ||
01 >> Current Version: 0 | ||
01 >> Latest Version: 0 | ||
01 >> Executed Migrations: 0 | ||
01 >> Available Migrations: 0 | ||
01 >> New Migrations: 0 | ||
✔ 01 [email protected] 0.051s | ||
{% endhighlight %} | ||
|
||
### Additional information | ||
|
@@ -63,21 +138,79 @@ set :migrations_default_arguments, ['--no-interaction'] | |
|
||
### Usage | ||
|
||
{% highlight shell %} | ||
{% highlight shell-session %} | ||
$ cap dev db:migrations:migrate | ||
{% endhighlight %} | ||
|
||
### Output | ||
|
||
{% highlight shell %} | ||
TODO | ||
{% highlight shell-session %} | ||
00:00 db:migrations:copy_doctrine_to_server | ||
./vendor/doctrine-migrations.phar found. | ||
Removing old migrations. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations | ||
✔ 01 [email protected] 0.379s | ||
Creating directories for migrations. | ||
02 mkdir -p /var/www/dkdeploy/shared/migrations/classes | ||
✔ 02 [email protected] 0.379s | ||
Copying doctrine-migrations.phar to /var/www/dkdeploy/shared/migrations directory. | ||
Uploading ./vendor/doctrine-migrations.phar 10.75% | ||
Uploading ./vendor/doctrine-migrations.phar 20.3% | ||
Uploading ./vendor/doctrine-migrations.phar 31.04% | ||
Uploading ./vendor/doctrine-migrations.phar 40.6% | ||
Uploading ./vendor/doctrine-migrations.phar 50.15% | ||
Uploading ./vendor/doctrine-migrations.phar 60.9% | ||
Uploading ./vendor/doctrine-migrations.phar 70.45% | ||
Uploading ./vendor/doctrine-migrations.phar 81.19% | ||
Uploading ./vendor/doctrine-migrations.phar 90.75% | ||
Uploading ./vendor/doctrine-migrations.phar 100.0% | ||
Copying db-configuration.php to /var/www/dkdeploy/shared/migrations. | ||
Downloading db_settings.dev.yaml 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/cli-config.php 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/migrations.yml 100.0% | ||
00:01 db:migrations:copy_migrations_to_server | ||
Uploading migrations to /var/www/dkdeploy/shared/migrations/classes. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations/classes | ||
✔ 01 [email protected] 0.008s | ||
Uploading migrations for stage dev to /var/www/dkdeploy/shared/migrations/classes. | ||
02 mkdir -p /var/www/dkdeploy/shared/migrations/classes | ||
✔ 02 [email protected] 0.005s | ||
Uploading config/migrations/stage/dev/Version22222222222222.php 100.0% | ||
Uploading config/migrations/stage/dev/Version33333333333333.php 100.0% | ||
00:01 db:migrations:migrate | ||
Migrating database. | ||
01 /usr/bin/php doctrine-migrations.phar migrations:migrate --no-interaction | ||
01 | ||
01 Doctrine TYPO3 Migrations | ||
01 | ||
01 | ||
01 Migrating up to 33333333333333 from 0 | ||
01 | ||
01 ++ migrating 22222222222222 | ||
01 | ||
01 Migration 22222222222222 was executed but did not result in any SQL statements. | ||
01 | ||
01 ++ migrated (0s) | ||
01 | ||
01 ++ migrating 33333333333333 | ||
01 | ||
01 Migration 33333333333333 was executed but did not result in any SQL statements. | ||
01 | ||
01 ++ migrated (0s) | ||
01 | ||
01 ------------------------ | ||
01 | ||
01 ++ finished in 0 | ||
01 ++ 2 migrations executed | ||
01 ++ 0 sql queries | ||
✔ 01 [email protected] 0.064s | ||
|
||
{% endhighlight %} | ||
|
||
### Additional information | ||
|
||
This task will first call <a href="#copydoctrinetoserver">copy migration to server</a> and <a href="#copymigrationtoserver">copy doctrine to server</a>, so any configuration options in that task will also affect this one. | ||
|
||
|
||
## execute\_down | ||
|
||
Downgrade database to a previous version | ||
|
@@ -91,17 +224,61 @@ CAUTION: It may not be possible to downgrade cleanly. If e.g. a previous migrati | |
set :migrations_default_arguments, ['--no-interaction'] | ||
{% endhighlight %} | ||
|
||
|
||
### Usage | ||
|
||
{% highlight shell %} | ||
Pass the targeting `migration_version` either as an argument (example in output section) or enter it interactively. | ||
|
||
{% highlight shell-session %} | ||
$ cap dev db:migrations:execute_down | ||
{% endhighlight %} | ||
|
||
### Output | ||
|
||
{% highlight shell %} | ||
TODO | ||
{% highlight shell-session %} | ||
$ cap dev db:migrations:execute_down[33333333333333] | ||
00:00 db:migrations:copy_doctrine_to_server | ||
./vendor/doctrine-migrations.phar found. | ||
Removing old migrations. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations | ||
✔ 01 [email protected] 0.381s | ||
Creating directories for migrations. | ||
02 mkdir -p /var/www/dkdeploy/shared/migrations/classes | ||
✔ 02 [email protected] 0.364s | ||
Copying doctrine-migrations.phar to /var/www/dkdeploy/shared/migrations directory. | ||
Uploading ./vendor/doctrine-migrations.phar 10.75% | ||
Uploading ./vendor/doctrine-migrations.phar 20.3% | ||
Uploading ./vendor/doctrine-migrations.phar 31.04% | ||
Uploading ./vendor/doctrine-migrations.phar 40.6% | ||
Uploading ./vendor/doctrine-migrations.phar 50.15% | ||
Uploading ./vendor/doctrine-migrations.phar 60.9% | ||
Uploading ./vendor/doctrine-migrations.phar 70.45% | ||
Uploading ./vendor/doctrine-migrations.phar 81.19% | ||
Uploading ./vendor/doctrine-migrations.phar 90.75% | ||
Uploading ./vendor/doctrine-migrations.phar 100.0% | ||
Copying db-configuration.php to /var/www/dkdeploy/shared/migrations. | ||
Downloading db_settings.dev.yaml 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/cli-config.php 100.0% | ||
Uploading /var/www/dkdeploy/shared/migrations/migrations.yml 100.0% | ||
00:00 db:migrations:copy_migrations_to_server | ||
Uploading migrations to /var/www/dkdeploy/shared/migrations/classes. | ||
01 rm -rf /var/www/dkdeploy/shared/migrations/classes | ||
✔ 01 [email protected] 0.006s | ||
Uploading migrations for stage dev to /var/www/dkdeploy/shared/migrations/classes. | ||
02 mkdir -p /var/www/dkdeploy/shared/migrations/classes | ||
✔ 02 [email protected] 0.006s | ||
Uploading config/migrations/stage/dev/Version22222222222222.php 100.0% | ||
Uploading config/migrations/stage/dev/Version33333333333333.php 100.0% | ||
Uploading config/migrations/stage/dev/Version44444444444444.php 100.0% | ||
Migrating down to version 33333333333333 | ||
03 /usr/bin/php doctrine-migrations.phar migrations:execute 33333333333333 --down --no-interaction | ||
03 | ||
03 -- reverting 33333333333333 | ||
03 | ||
03 Migration 33333333333333 was executed but did not result in any SQL statements. | ||
03 | ||
03 -- reverted (0.01s) | ||
✔ 03 [email protected] 0.062s | ||
|
||
{% endhighlight %} | ||
|
||
## copy\_doctrine\_to\_server | ||
|
@@ -117,7 +294,7 @@ set :doctrine_phar, './vendor/doctrine-migrations.phar' | |
|
||
### Usage | ||
|
||
{% highlight shell %} | ||
{% highlight shell-session %} | ||
$ cap dev db:migrations:copy_doctrine_to_server | ||
{% endhighlight %} | ||
|
||
|
@@ -159,14 +336,13 @@ Copies your Doctrine migrations to the server | |
|
||
### Usage | ||
|
||
{% highlight shell %} | ||
$ cap dev db:migrations:copy_migrations_to_server | ||
{% highlight shell-session%} | ||
$ cap dev db:migrations:copy_migrations_to_server | ||
{% endhighlight %} | ||
|
||
### Output | ||
|
||
{% highlight shell-session %} | ||
db:migrations:copy_migrations_to_server | ||
Uploading migrations to {{site.data.constants.deploy.path}}shared/migrations/classes. | ||
01 rm -rf {{site.data.constants.deploy.path}}shared/migrations/classes | ||
01 {{site.data.constants.deploy.user}}@{{site.data.constants.deploy.host}} 0.397s | ||
|
@@ -176,4 +352,4 @@ Uploading migrations for stage {{site.data.constants.deploy.stage}} to {{site.da | |
02 mkdir -p {{site.data.constants.deploy.path}}shared/migrations/classes | ||
02 {{site.data.constants.deploy.user}}@{{site.data.constants.deploy.host}} 0.008s | ||
Uploading config/migrations/stage/{{site.data.constants.deploy.stage}}Version20120109171451.php 100.0% | ||
{% endhighlight %} | ||
{% endhighlight %} |