You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -27,28 +27,43 @@ But at the end despite these good features the reality in big projects someone w
27
27
28
28
Because of that this is an agnostic project (independent of framework and Programming Language) and use pure and native SQL commands for migrate your database.
29
29
30
-
## Installing
30
+
# Installing
31
+
32
+
## PHP Library
33
+
34
+
If you want to use only the PHP Library in your project:
31
35
32
36
```
33
37
composer require 'byjg/migration=4.0.*'
34
38
```
39
+
## Command Line Interface
40
+
41
+
The command line interface is standalone and does not require you install with your project.
42
+
43
+
You can install global and create a symbolic lynk
44
+
45
+
```
46
+
composer require 'byjg/migration-cli=4.0.*'
47
+
```
48
+
49
+
Please visit https://github.com/byjg/migration-cli to get more informations about Migration CLI.
35
50
36
-
##Supported databases:
51
+
# Supported databases:
37
52
38
53
* Sqlite
39
54
* Mysql / MariaDB
40
55
* Postgres
41
56
* SqlServer
42
57
43
-
##How It Works?
58
+
# How It Works?
44
59
45
60
The Database Migration uses PURE SQL to manage the database versioning.
46
61
In order to get working you need to:
47
62
48
63
- Create the SQL Scripts
49
64
- Manage using Command Line or the API.
50
65
51
-
###The SQL Scripts
66
+
## The SQL Scripts
52
67
53
68
The scripts are divided in three set of scripts:
54
69
@@ -102,114 +117,8 @@ If he is try to migrate UP or DOWN
102
117
the migration script will down and alert him there a TWO versions 43. In that case, developer 2 will have to update your
103
118
file do 44-dev.sql and continue to work until merge your changes and generate a final version.
104
119
105
-
### Running in the command line
106
-
107
-
Migration library creates the 'migrate' script. It has the follow syntax:
108
-
109
-
```
110
-
Usage:
111
-
command [options] [arguments]
112
-
113
-
Options:
114
-
-h, --help Display this help message
115
-
-q, --quiet Do not output any message
116
-
-V, --version Display this application version
117
-
--ansi Force ANSI output
118
-
--no-ansi Disable ANSI output
119
-
-n, --no-interaction Do not ask any interactive question
120
-
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
121
-
122
-
Available commands:
123
-
create Create the directory structure FROM a pre-existing database
124
-
down Migrate down the database version.
125
-
help Displays help for a command
126
-
install Install or upgrade the migrate version in a existing database
127
-
list Lists commands
128
-
reset Create a fresh new database
129
-
up Migrate Up the database version
130
-
update Migrate Up or Down the database version based on the current database version and the migration scripts available
0 commit comments