Skip to content

Commit 7a5da7b

Browse files
committed
add notes on how to upgrade from 2.x to 3.0
1 parent 4b890ea commit 7a5da7b

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

UPGRADE.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Upgrade
2+
3+
## From 2.x to 3.0.0
4+
5+
- The configuration for the migration namespace and directory changed as follows:
6+
7+
Before
8+
9+
```yaml
10+
doctrine_migrations:
11+
dir_name: '%kernel.project_dir%/src/Migrations'
12+
namespace: DoctrineMigrations
13+
```
14+
15+
After
16+
17+
```yaml
18+
doctrine_migrations:
19+
migrations_paths:
20+
'DoctrineMigrations': '%kernel.project_dir%/src/Migrations'
21+
```
22+
23+
- The configuration for the metadata table definition changed as follows:
24+
25+
Before
26+
27+
```yaml
28+
doctrine_migrations:
29+
table_name: 'migration_versions'
30+
column_name: 'version'
31+
column_length: 14
32+
executed_at_column_name: 'executed_at'
33+
```
34+
35+
After
36+
37+
```yaml
38+
doctrine_migrations:
39+
storage:
40+
table_storage:
41+
table_name: 'migration_versions'
42+
version_column_name: 'version'
43+
version_column_length: 1024
44+
executed_at_column_name: 'executed_at'
45+
```
46+
- The migration name has been dropped:
47+
48+
Before
49+
50+
```yaml
51+
doctrine_migrations:
52+
name: 'Application Migrations'
53+
```
54+
55+
After
56+
57+
The parameter `name` has been dropped.

0 commit comments

Comments
 (0)