Skip to content

Commit 4bf6aa3

Browse files
authored
Merge pull request #340 from doctrine/bc-breaks-docs
Document table name BC break
2 parents bbd722f + 1adac8c commit 4bf6aa3

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

UPGRADE.md

Lines changed: 12 additions & 9 deletions
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,16 +56,19 @@ After
5656
5757
The parameter `name` has been dropped.
5858

59-
- Custom migration templates:
6059

61-
Before
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.
6262

63-
```php
64-
final class Version<version> extends AbstractMigration
63+
```yaml
64+
doctrine_migrations:
65+
storage:
66+
table_storage:
67+
table_name: 'migration_versions'
6568
```
6669

67-
After
70+
### Underlying doctrine/migrations library
6871

69-
```php
70-
final class <className> extends AbstractMigration
71-
```
72+
Upgrading this bundle to `3.0` will also update the `doctrine/migrations` library to the version `3.0`.
73+
Backward incompatible changes in `doctrine/migrations` 3.0
74+
are documented in the dedicated [UPGRADE](https://github.com/doctrine/migrations/blob/3.0.x/UPGRADE.md) document.

0 commit comments

Comments
 (0)