1
- # PHP Database Migration Validator
1
+ # PHP DB Migration Validator
2
2
3
- ![ php-database -migration-validator] ( https://user-images.githubusercontent.com/1849174/149621805-f81bc379-e25e-4f98-8e5c-4102c0cad749.gif )
3
+ ![ php-db -migration-validator] ( https://user-images.githubusercontent.com/1849174/149621805-f81bc379-e25e-4f98-8e5c-4102c0cad749.gif )
4
4
5
5
<p align =" center " >
6
6
<a href =" https://discord.gg/83Yd8MgYp9 " ><img src =" https://img.shields.io/static/v1?logo=discord&label=&message=Discord&color=36393f&style=flat-square " alt =" Discord " ></a >
7
- <a href =" https://github.com/antonkomarev/php-database -migration-validator/releases " ><img src =" https://img.shields.io/github/release/antonkomarev/php-database -migration-validator.svg?style=flat-square " alt =" Releases " ></a >
8
- <a href =" https://github.com/antonkomarev/php-database -migration-validator/blob/master/LICENSE " ><img src =" https://img.shields.io/github/license/antonkomarev/php-database -migration-validator.svg?style=flat-square " alt =" License " ></a >
7
+ <a href =" https://github.com/antonkomarev/php-db -migration-validator/releases " ><img src =" https://img.shields.io/github/release/antonkomarev/php-db -migration-validator.svg?style=flat-square " alt =" Releases " ></a >
8
+ <a href =" https://github.com/antonkomarev/php-db -migration-validator/blob/master/LICENSE " ><img src =" https://img.shields.io/github/license/antonkomarev/php-db -migration-validator.svg?style=flat-square " alt =" License " ></a >
9
9
</p >
10
10
11
11
## Installation
12
12
13
13
Pull in the package through Composer.
14
14
15
15
``` shell
16
- php composer require antonkomarev/php-database -migration-validator
16
+ php composer require antonkomarev/php-db -migration-validator
17
17
```
18
18
19
19
## Usage
@@ -23,36 +23,36 @@ php composer require antonkomarev/php-database-migration-validator
23
23
** Validate file**
24
24
25
25
``` shell
26
- php vendor/bin/php-database -migration-validator --rule=irreversible migrations/file.php
26
+ php vendor/bin/php-db -migration-validator --rule=irreversible migrations/file.php
27
27
```
28
28
29
29
** Validate many files**
30
30
31
31
``` shell
32
- php vendor/bin/php-database -migration-validator --rule=irreversible migrations/file.php migrations/file2.php
32
+ php vendor/bin/php-db -migration-validator --rule=irreversible migrations/file.php migrations/file2.php
33
33
```
34
34
35
35
** Validate file by wildcard**
36
36
37
37
``` shell
38
- php vendor/bin/php-database -migration-validator --rule=irreversible migrations/2022_*
38
+ php vendor/bin/php-db -migration-validator --rule=irreversible migrations/2022_*
39
39
```
40
40
41
41
** Validate files in directory**
42
42
43
43
``` shell
44
- php vendor/bin/php-database -migration-validator --rule=irreversible migrations/
44
+ php vendor/bin/php-db -migration-validator --rule=irreversible migrations/
45
45
```
46
46
47
47
** Validate files in many directories**
48
48
49
49
``` shell
50
- php vendor/bin/php-database -migration-validator --rule=irreversible app/migrations/ vendor/migrations/
50
+ php vendor/bin/php-db -migration-validator --rule=irreversible app/migrations/ vendor/migrations/
51
51
```
52
52
53
53
## License
54
54
55
- - ` PHP Database Migration Validator ` package is open-sourced software licensed under the [ MIT license] ( LICENSE ) by [ Anton Komarev] .
55
+ - ` PHP DB Migration Validator ` package is open-sourced software licensed under the [ MIT license] ( LICENSE ) by [ Anton Komarev] .
56
56
57
57
## About CyberCog
58
58
0 commit comments