Skip to content

Commit

Permalink
Update UPGRADE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanlaak committed Apr 13, 2016
1 parent b62e928 commit 7b8cb38
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit 7b8cb38

Please sign in to comment.