This repository was archived by the owner on Jan 31, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +680
-4
lines changed
src/ZendDiagnostics/Check
tests/ZendDiagnosticsTest Expand file tree Collapse file tree 5 files changed +680
-4
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ It currently ships with the following Diagnostic Checks:
26
26
* [ Redis] ( #redis ) - Validate that a Redis service is running,
27
27
* [ SecurityAdvisory] ( #securityadvisory ) - check installed composer dependencies against SensioLabs SA database,
28
28
* [ StreamWrapperExists] ( #streamwrapperexists ) - make sure given stream wrapper is available.
29
+ * [ DoctrineMigration] ( #doctrinemigration ) - make sure all migrations are applied.
29
30
30
31
File validation checks:
31
32
@@ -578,6 +579,21 @@ $checkCompression = new StreamWrapperExists(array(
578
579
));
579
580
````
580
581
582
+ ### DoctrineMigration
583
+
584
+ Make sure all migrations are applied:
585
+
586
+ ```` php
587
+ <?php
588
+ use Doctrine\DBAL\Migrations\Configuration\Configuration;
589
+ use Doctrine\ORM\EntityManager;
590
+ use ZendDiagnostics\Check\DoctrineMigration;
591
+
592
+ $em = EntityManager::create(/** config */);
593
+ $migrationConfig = new Configuration($em);
594
+ $check = new DoctrineMigration($migrationConfig);
595
+ ````
596
+
581
597
### IniFile
582
598
583
599
Read an INI-file from the given path and try to parse it.
Original file line number Diff line number Diff line change 25
25
"guzzle/plugin-mock" : " 3.*" ,
26
26
"videlalvaro/php-amqplib" : " 2.*" ,
27
27
"predis/predis" : " 0.8.*" ,
28
- "phpunit/phpunit" : " 4.7.*"
28
+ "phpunit/phpunit" : " 4.7.*" ,
29
+ "doctrine/migrations" : " ~1.0@dev"
29
30
},
30
31
"suggest" : {
31
32
"ext-bcmath" : " Required by Check\\ CpuPerformance" ,
32
33
"sensiolabs/security-checker" : " Required by Check\\ SecurityAdvisory" ,
33
34
"symfony/yaml" : " Required by Check\\ YamlFile" ,
34
35
"guzzle/http" : " Required by Check\\ GuzzleHttpService" ,
35
36
"predis/predis" : " Required by Check\\ Redis" ,
36
- "videlalvaro/php-amqplib" : " Required by Check\\ RabbitMQ"
37
+ "videlalvaro/php-amqplib" : " Required by Check\\ RabbitMQ" ,
38
+ "doctrine/migrations" : " Required by Check\\ DoctrineMigration"
37
39
},
38
40
"extra" : {
39
41
"branch-alias" : {
You can’t perform that action at this time.
0 commit comments