<commit_before># Upgrade

## 1.3.0-RC3

### Address country is nullable

To make it easier to migrate data the country in the address entity is now nullable in sulu.

```sql
ALTER TABLE co_addresses CHANGE idCountries idCountries INT DEFAULT NULL;
```

### Databases

#### ORM

The mapping structure of analytic settings have changed.
Use the following command to update:

```bash
app/console doctrine:schema:update --force
```

## 1.3.0-RC2

### SearchController

The `SearchController` has been moved from sulu-standard to sulu. Therefore the
new template type `search` has been introduced. Just define the twig template
you want to use for the search in your webspace configuration:

```xml
<templates>
    <template type="search">ClientWebsiteBundle:views:query.html.twig</template>
</templates>
```

The name of the route also changed from `website_search` to
`sulu_search.website_search`, because the controller is located in the
SuluSearchBundle now.

### Webspace Configuration

The configuration schema for webspaces has changed. Instead of
`error-templates` you have to define `templates` now with a certain type.
For the error templates this type is `error` for the default error, and
`error-<code>` for certain error codes.

Before:
```xml
<error-templates>
    <error-template code="404">SomeBundle:view:error404.html.twig</error-template>
    <error-template default="true">SomeBundle:view:error.html.twig</error-template>
</error-templates>
```

After:
```xml
<templates>
    <template type="error-404">SomeBundle:views:error404.html.twig</template>
    <template type="error">SomeBundle:views:error.html.twig</template>
</templates>
```

This change only affects the files which use the 1.1 version of the webspace
schema definition.

## 1.3.0-RC1

### PHPCR

To adapt to the new PHPCR structure execute the migrations:

```
app/console phpcr:migrations:migrate
```

### Media selection overlay
The frontend component 'media-selection-overlay@sulumedia' got removed,
please use 'media-selection/overlay@sulumedia' instead.

### NodeRepository

The `orderBefore` method of the `NodeRepository` has been removed. Use the
`reorder` method of the `DocumentManager` instead.
<commit_msg>add removed image format to upgrade (#735)<commit_after># Upgrade

## 1.3.0-RC3

### Address country is nullable

To make it easier to migrate data the country in the address entity is now nullable in sulu.

```sql
ALTER TABLE co_addresses CHANGE idCountries idCountries INT DEFAULT NULL;
```

### Databases

#### ORM

The mapping structure of analytic settings have changed.
Use the following command to update:

```bash
app/console doctrine:schema:update --force
```

## 1.3.0-RC2

### SearchController

The `SearchController` has been moved from sulu-standard to sulu. Therefore the
new template type `search` has been introduced. Just define the twig template
you want to use for the search in your webspace configuration:

```xml
<templates>
    <template type="search">ClientWebsiteBundle:views:query.html.twig</template>
</templates>
```

The name of the route also changed from `website_search` to
`sulu_search.website_search`, because the controller is located in the
SuluSearchBundle now.

### Webspace Configuration

The configuration schema for webspaces has changed. Instead of
`error-templates` you have to define `templates` now with a certain type.
For the error templates this type is `error` for the default error, and
`error-<code>` for certain error codes.

Before:
```xml
<error-templates>
    <error-template code="404">SomeBundle:view:error404.html.twig</error-template>
    <error-template default="true">SomeBundle:view:error.html.twig</error-template>
</error-templates>
```

After:
```xml
<templates>
    <template type="error-404">SomeBundle:views:error404.html.twig</template>
    <template type="error">SomeBundle:views:error.html.twig</template>
</templates>
```

This change only affects the files which use the 1.1 version of the webspace
schema definition.

## 1.3.0-RC1

### Image Formats
The image format "150x100" as well as the format "200x200" got removed
from the backend formats. If a website relied on this format,
it should be - as all image formats a website needs - defined
in the theme specific config file.
(http://docs.sulu.io/en/latest/book/creating-a-basic-website/configuring-image-formats.html)

### PHPCR

To adapt to the new PHPCR structure execute the migrations:

```
app/console phpcr:migrations:migrate
```

### Media selection overlay
The frontend component 'media-selection-overlay@sulumedia' got removed,
please use 'media-selection/overlay@sulumedia' instead.

### NodeRepository

The `orderBefore` method of the `NodeRepository` has been removed. Use the
`reorder` method of the `DocumentManager` instead.

{'fraction_non_alphanumeric': 0.10425844346549193, 'fraction_numerical': 0.014054961191525068, 'mean_word_length': 5.089399744572158, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7673184', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1368, 'n_words': 515}