# Bug COMMS-636 - Default document types are recreated after every OpenProject update

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-636

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Documents |
| Target versions | 17.1.1 |
| Observed in versions | 17.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

I’m running a current OpenProject version and checked for similar reports, but couldn’t find one matching this behavior.

### Steps to reproduce

1\. Use an older on-premise OpenProject installation.  
2\. Remove the default document types because they are not needed in this setup.  
3\. Update OpenProject to a newer version.  
4\. Open Administration -&gt; Document types.  
5\. Check the document type list after the update.

**Current workaround being tested:**  
Disable default document types instead of deleting them. (Not sure if this will work)

### What is the buggy behavior?

After installing OpenProject updates, previously removed default document types are automatically created again.  
This means we have to manually clean them up after every update. For our workflow this is unnecessary, and we also need document types in German only.  
It is currently unclear what the correct/expected life cycle of default document types is during updates (recreated, preserved, or ignored when removed/disabled).

### What is the expected behavior?

1\. If default document types were deleted intentionally, they should not be recreated automatically during updates.  
2\. It should be clearly documented how default document types are handled during upgrades.

### **Logs**

No specific error message is currently visible in the UI.  
Please let me know which exact logs are most useful for this case (OpenProject logs, production.log, or package logs), and I will attach them from the next update cycle.

### Screenshots and other files

No specific error message is currently visible in the UI.  
Please let me know which exact logs are most useful for this case (OpenProject logs, production.log, or package logs), and I will attach them from the next update cycle.

### Environment information

**OpenProject installation type**

*   Packaged installation
    
    *   What distribution? Debian
        

**OpenProject version**

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

\- Browser language: German (de-DE)  
\- OpenProject user language: German
