Skip to content

Commit f9d4b66

Browse files
committed
Document table name BC break
In doctrine/migrations 3.x and doctrine/DoctrineMigrationsBundle 3.x the table name is `doctrine_migration_versions`, in the previous version the doctrine/migrations library was using as default `doctrine_migration_versions` while the bundle was using `migration_versions`.
1 parent 28b7389 commit f9d4b66

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

UPGRADE.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ doctrine_migrations:
4040
table_storage:
4141
table_name: 'migration_versions'
4242
version_column_name: 'version'
43-
version_column_length: 1024
43+
version_column_length: 191
4444
executed_at_column_name: 'executed_at'
4545
```
4646
- The migration name has been dropped:
@@ -56,6 +56,17 @@ After
5656
5757
The parameter `name` has been dropped.
5858

59+
60+
- The default for `table_name` changed from `migration_versions` to `doctrine_migration_versions`. If you did not
61+
specify the `table_name` option, you now need to declare it explicitly to not lose migration data.
62+
63+
```yaml
64+
doctrine_migrations:
65+
storage:
66+
table_storage:
67+
table_name: 'migration_versions'
68+
```
69+
5970
- Custom migration templates:
6071

6172
Before

0 commit comments

Comments
 (0)