diff --git a/UPGRADE.md b/UPGRADE.md index 6d6aca7..541c3a9 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -19,25 +19,31 @@ class MyUser implements SettingsOwnerInterface You do also need to update your database tables. -**1) Via [DoctrineMigrationsBundle](http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html):** +* Via [DoctrineMigrationsBundle](http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html):** ```bash php app/console doctrine:migrations:diff php app/console doctrine:migrations:migrate ``` -**2) Manually:** +* Using Doctrine schema update tool ```bash php app/console doctrine:schema:update --force ``` -**3) Queries:** - -The following queries should be executed: +* The following queries should be executed: ``` sql DROP INDEX name_user_name_idx ON dmishh_settings; ALTER TABLE dmishh_settings CHANGE username ownerId VARCHAR(255) DEFAULT NULL; CREATE INDEX name_owner_id_idx ON dmishh_settings (name, ownerId); ``` + +### Namespace changed + +The "\Bundle" part of the namespace has been removed between `2.0.0-beta1` and `2.0.0-beta2`. The use statements +and `AppKernel` bundle declaration should be changed: + +* Old: `Dmishh\Bundle\SettingsBundle` +* New: `Dmishh\SettingsBundle`