# Bug OP-20398 - Docker migrations never loading structure, falling back to migrations

Project: OpenProject
Status: tested
URL: https://community.openproject.org/work_packages/OP-20398

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | DevSecOps / Docker |
| Target versions | 17.9.2 |
| Observed in versions | 17.9.1 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

###   

### Steps to reproduce

1.  Start a docker container, e.g. the AIO one, with the default postgres 17 database, e.g. via
    
    1.  `docker run --rm -it openproject/openproject:17.9.1`
        

### What is the buggy behavior?

*   you can observe schema migrations being executed during the initial startup
    

### What is the expected behavior?

*   The migrations should not be executed, rather the structure.sql should be loaded directly
    

###   

### Environment information

**OpenProject installation type**

*   Docker All-in-one container
    
*   Docker-compose installation
    
*   Helm
    

**OpenProject version**

_v17.9.1 (and earlier)_
